Fix haxxer typer

This commit is contained in:
timoreo 2024-01-10 17:02:11 +01:00
parent 403b0863b6
commit 07960b142c
Signed by: timoreo
GPG key ID: 121A72C3512BA288

View file

@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {
while (!feof(command_output_fptr)) {
getchar();
for (unsigned int i = 0; i < CHARS_TO_WRITE; i++) {
for (unsigned int i = 0; i < CHARS_TO_WRITE && !feof(command_output_fptr); i++) {
current_char = fgetc(command_output_fptr);
printf("%c", current_char);
}