Browse Source

libpng: fix bug on count of files generated

Douglas Andreani 5 years ago
parent
commit
e3fc839301
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libpng/png.c

+ 1 - 1
libpng/png.c

@@ -29,7 +29,7 @@ int main(int argc, char** argv){
 
 	srand48(1000);
 	
-	for (count=0; count<(1000);count++){
+	for (count=0; count<(c);count++){
 
 		for (i=0;i<width;i++){
 			rows[i].p = malloc (height * sizeof(pix));