Fixed read_tape.

This commit is contained in:
starcells committed 2026-05-04 16:05:51 +08:00
1 parent c6cce2a9a5
commit b211ce0180
1 file changed
+4 -2
+4 -2
View File
@@ -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);
}