Fix CID 1134727

This commit is contained in:
Anton Kochkov 2014-04-26 04:16:28 +04:00
parent 2a787faf44
commit cefa742a25
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ static int use_stdin () {
int n = read (0, buf+l, sizeof (buf)-l);
if (n<1) break;
l+= n;
if (buf[l]==0) {
if (buf[l-1]==0) {
l--;
continue;
}