Use uint8_t instead of uint16_t correctly - farbfeld - suckless image format with conversion tools
 (HTM) git clone git://git.suckless.org/farbfeld
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 265ded62c50b4d6be72fbff0a10304280ec233e5
 (DIR) parent fdf5a2b53a7499e5860323255d914191aee7cdba
 (HTM) Author: FRIGN <dev@frign.de>
       Date:   Mon, 21 Mar 2016 23:41:27 +0100
       
       Use uint8_t instead of uint16_t correctly
       
       Diffstat:
         M ff2ppm.c                            |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) 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;
                }