1. libgd
  2. Untitled project
  3. gd-libgd

Source

gd-libgd / src / gd_webp.c

Diff from to

File src/gd_webp.c

  • Ignore whitespace
 	read = filedata;
 	do {
 		n = gdGetBuf(read, 1024, infile);
-		size += n;
-		if (n) {
+		if (n>0) {
+			size += n;
 			temp = gdRealloc(filedata, size+1024);
 			if (temp) {
 				filedata = temp;