diff --git a/src/imgio.c b/src/imgio.c index 1739671..151315f 100644 --- a/src/imgio.c +++ b/src/imgio.c @@ -90,7 +90,7 @@ ppm_save(const unsigned int* buf, const PPM img) if (!fptr) { free(dst_buf); - return 0; + return 10; } fprintf(fptr, "P%c\n%d %d\n255\n", img.fmt, img.width, img.height);