Skip to content

Commit

Permalink
Merge pull request #44 from hirotosakai/issue43
Browse files Browse the repository at this point in the history
fix #43
  • Loading branch information
jca02266 committed Sep 13, 2023
2 parents 2695022 + fae243e commit 4f193b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lharc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,10 @@ inquire(msg, name, selective)
fflush(stderr);

fgets(buffer, 1024, stdin);
if (feof(stdin)) { /* ^D is entered */
clearerr(stdin);
fprintf(stderr, "\n");
}

for (p = selective; *p; p++)
if (buffer[0] == *p)
Expand Down

0 comments on commit 4f193b1

Please sign in to comment.