commit 265ded62c50b4d6be72fbff0a10304280ec233e5
Author: FRIGN <[email protected]>
AuthorDate: Mon Mar 21 23:41:27 2016 +0100
Commit: FRIGN <[email protected]>
CommitDate: Mon Mar 21 23:41:27 2016 +0100
Use uint8_t instead of uint16_t correctly
diff --git a/ff2ppm.c b/ff2ppm.c
index 265e317..6ff4416 100644
--- a/ff2ppm.c
+++ b/ff2ppm.c
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
fprintf(stderr, "%s: malloc: %s\n", argv0, strerror(errno));
return 1;
}
- if (!(rowout = malloc(width * (sizeof("RGB") - 1) * sizeof(uint16_t))))
{
+ if (!(rowout = malloc(width * (sizeof("RGB") - 1) * sizeof(uint8_t)))) {
fprintf(stderr, "%s: malloc: %s\n", argv0, strerror(errno));
return 1;
}