commit 79a7533

zzo38  ·  2023-04-17 03:51:15 +0000 UTC
parent fff6a1f
Set the stdin value to zero on EOF in nonstandard mode.
1 files changed,  +2, -0
M main.c
M main.c
+2, -0
 1@@ -1483,6 +1483,7 @@ int main(int argc,char**argv) {
 2     run(GET16(device[1].d));
 3   }
 4   if(use_extension && (device[1].d[7]&0x80)) {
 5+    device[1].d[2]=0;
 6     device[1].d[7]=(device[1].d[7]&0xF0)|0x04;
 7     run(GET16(device[1].d));
 8   }
 9@@ -1503,6 +1504,7 @@ int main(int argc,char**argv) {
10       run(GET16(device[1].d));
11     }
12     if(use_extension && (device[1].d[7]&0x80)) {
13+      device[1].d[2]=0;
14       device[1].d[7]=(device[1].d[7]&0xF0)|0x01;
15       run(GET16(device[1].d));
16     }