This commit is contained in:
Andrew Haynes
2026-03-22 18:50:47 -04:00
parent 6ade1b7a5e
commit b986e7394e
+2 -2
View File
@@ -68,13 +68,13 @@ ppm_save(const unsigned int* buf, const PPM img)
{
if (!buf)
{
return 0;
return 10;
}
unsigned char red, green, blue;
unsigned char* dst_buf = malloc(img.len * 3);
if (!dst_buf)
{
return 0;
return 10;
}
printf("Starting encode...\n");
FILE* fptr;