Introduction
Introduction Statistics Contact Development Disclaimer Help
Use uint8_t instead of uint16_t correctly - farbfeld - suckless image format wi…
git clone git://git.suckless.org/farbfeld
Log
Files
Refs
README
LICENSE
---
commit 265ded62c50b4d6be72fbff0a10304280ec233e5
parent fdf5a2b53a7499e5860323255d914191aee7cdba
Author: FRIGN <[email protected]>
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(-)
---
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;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.