1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-29 15:40:56 +01:00

zsh-workers/9904

This commit is contained in:
Tanaka Akira 2000-02-28 13:29:43 +00:00
parent f0f5b51437
commit 927db58549

View file

@ -1318,7 +1318,7 @@ noquery(int purge)
#ifdef FIONREAD
ioctl(SHTTY, FIONREAD, (char *)&val);
if (purge) {
while(val--)
for (; val; val--)
read(SHTTY, &c, 1);
}
#endif