This commit is contained in:
Andrew Haynes
2026-03-22 18:50:02 -04:00
parent adcb295a5e
commit 6ade1b7a5e
+1 -1
View File
@@ -90,7 +90,7 @@ ppm_save(const unsigned int* buf, const PPM img)
if (!fptr) if (!fptr)
{ {
free(dst_buf); free(dst_buf);
return 0; return 10;
} }
fprintf(fptr, "P%c\n%d %d\n255\n", img.fmt, img.width, img.height); fprintf(fptr, "P%c\n%d %d\n255\n", img.fmt, img.width, img.height);