farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 265ded62c50b4d6be72fbff0a10304280ec233e5
parent fdf5a2b53a7499e5860323255d914191aee7cdba
Author: FRIGN <dev@frign.de>
Date:   Mon, 21 Mar 2016 23:41:27 +0100

Use uint8_t instead of uint16_t correctly

Diffstat:
ff2ppm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }