Fixed read_tape.
This commit is contained in:
1 parent
c6cce2a9a5
commit
b211ce0180
1 file changed
+4
-2
+4
-2
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user