diff --git a/src/rot8_io.c b/src/rot8_io.c index 31712c5..430776b 100644 --- a/src/rot8_io.c +++ b/src/rot8_io.c @@ -22,8 +22,10 @@ void read_tape(const char *filename, char *tape) { char get; while ((get = fgetc(fp)) != EOF) { - if (strchr("><+-[].,", get) != NULL) *tail = get; - tail++; + if (strchr("><+-[].,", get) != NULL) { + *tail = get; + tail++; + } } fclose(fp); }