From 18b1d995cb0414550d6f10703d91b5a9d0ae00cd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 17 Apr 2009 16:33:33 +0000 Subject: And again. svn path=/trunk/libcss/; revision=7125 --- test/lex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/lex.c b/test/lex.c index 6aadf28..29326d0 100644 --- a/test/lex.c +++ b/test/lex.c @@ -158,7 +158,8 @@ int main(int argc, char **argv) fseek(fp, 0, SEEK_SET); while (len >= CHUNK_SIZE) { - fread(buf, 1, CHUNK_SIZE, fp); + size_t read = fread(buf, 1, CHUNK_SIZE, fp); + assert(read == CHUNK_SIZE); assert(parserutils_inputstream_append(stream, buf, CHUNK_SIZE) == PARSERUTILS_OK); @@ -175,7 +176,8 @@ int main(int argc, char **argv) } if (len > 0) { - fread(buf, 1, len, fp); + size_t read = fread(buf, 1, len, fp); + assert(read == len); assert(parserutils_inputstream_append(stream, buf, len) == PARSERUTILS_OK); -- cgit v1.2.3