1
0
Fork 0

lib/io.c: small cleanup

This commit is contained in:
H Hautakoski 2010-09-06 16:50:16 +02:00
parent 5e39e3554e
commit a8e48c2058

View file

@ -13,11 +13,10 @@ int readnum(FILE *fd, char *buf, size_t len) {
if (c < '0' || c > '9') if (c < '0' || c > '9')
continue; continue;
buf[i] = c; buf[i++] = c;
if (i+1 > len) if (i > len)
break; break;
i++;
} }
return i; return i;