소스 검색

libpng: fix bug on count of files generated

Douglas Andreani 5 년 전
부모
커밋
e089a0c504
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));