Commits

Remi Collet  committed 6f3c478

improves a08a17ddafd0

  • Participants
  • Parent commits a08a17d

Comments (0)

Files changed (1)

File src/gd_webp.c

 	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;