Skip to content

Commit

Permalink
Negative values to napms( ) could result in the program hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Mar 9, 2024
1 parent a99cc14 commit 65dfa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdcurses/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int napms(int ms)
curs_set(curs_state);
}

if (ms)
if( ms > 0)
PDC_napms(ms);

return OK;
Expand Down

0 comments on commit 65dfa7e

Please sign in to comment.