[hackers] [farbfeld] Use uint8_t instead of uint16_t correctly || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 21 Mar 2016 23:41:39 +0100 (CET)

commit 265ded62c50b4d6be72fbff0a10304280ec233e5
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Mon Mar 21 23:41:27 2016 +0100
Commit: FRIGN <dev_AT_frign.de>
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
_AT_@ -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;
         }
Received on Mon Mar 21 2016 - 23:41:39 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 21 2016 - 23:48:15 CET