clear the input buffer before reading from stdin again

This commit is contained in:
onyx-and-iris 2024-06-27 23:07:29 +01:00
parent e06a26f87b
commit 947abb3c01

View File

@ -206,6 +206,7 @@ void interactive(T_VBVMR_INTERFACE *vmr)
} }
p = input; /* reset pointer */ p = input; /* reset pointer */
memset(input, '\0', sizeof(input)); /* reset input buffer */
printf(">> "); printf(">> ");
} }
} }