Fix haxxer typer #1

Merged
ahurac merged 2 commits from timoreo/ahuarc-dotfiles:master into master 2024-01-25 16:30:25 +01:00
Showing only changes of commit 07960b142c - Show all commits

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);
}