Permalink
Browse files

print how much got read (it just failed)

  • Loading branch information...
1 parent a9edd41 commit acfa0b0305386c113a9abb9b57f88a546008072a @pkrumins committed Jul 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 discovery/rgbatorgb.c
View
@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
size_t n = fread(rgba_buf, sizeof(unsigned char), rgba_size, input);
if (n != rgba_size) {
- printf("Didn't read %d bytes (width*height*4)\n", rgba_size);
+ printf("Didn't read %d bytes (width*height*4), read %d\n", rgba_size, n);
exit(1);
}

0 comments on commit acfa0b0

Please sign in to comment.