diff options
author | FRIGN <dev@frign.de> | 2016-01-06 12:29:36 +0100 |
---|---|---|
committer | FRIGN <dev@frign.de> | 2016-01-06 12:29:36 +0100 |
commit | 98dbe21bcb83fead026c295329ad2a55d8eff1b5 (patch) | |
tree | 0ac9d72d20376304a50d09d3d1682c11e80da4c3 /ff2png.c | |
parent | b1868127e4102b2e073750c7f55fd445bee028be (diff) |
Small changes in the png-utils
forgot to include setjmp.h. also correct the malloc error-messageSmall
Diffstat (limited to 'ff2png.c')
-rw-r--r-- | ff2png.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,6 +2,7 @@ #include <arpa/inet.h> #include <errno.h> +#include <setjmp.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -59,8 +60,7 @@ main(int argc, char *argv[]) /* write rows */ png_row_len = strlen("RGBA") * width * sizeof(uint16_t); if (!(png_row = malloc(png_row_len))) { - fprintf(stderr, "%s: malloc: ", argv[0]); - perror(NULL); + fprintf(stderr, "%s: malloc: out of memory\n", argv[0]); return 1; } for (i = 0; i < height; ++i) { |