diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-04-16 11:31:22 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-04-18 08:28:36 +0200 |
commit | 32b1307c62a5e8385118b6d7ce84743d125d335d (patch) | |
tree | 70cb1251e9ac6341c6a93b9a2ba3b35762ce59a7 /src/gd_tga.c | |
parent | 21efcc3092a76540476a3f5e0ddc236214d05de0 (diff) | |
download | libgd-32b1307c62a5e8385118b6d7ce84743d125d335d.tar.gz |
Use custom error handler instead of fprintf(stderr, ...)
Diffstat (limited to 'src/gd_tga.c')
-rw-r--r-- | src/gd_tga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gd_tga.c b/src/gd_tga.c index d21149f..44972d5 100644 --- a/src/gd_tga.c +++ b/src/gd_tga.c @@ -132,7 +132,7 @@ int read_header_tga(gdIOCtx *ctx, oTga *tga) unsigned char header[18]; if (gdGetBuf(header, sizeof(header), ctx) < 18) { - fprintf(stderr, "fail to read header"); + gd_error("fail to read header"); return -1; } @@ -165,7 +165,7 @@ int read_header_tga(gdIOCtx *ctx, oTga *tga) case 32: break; default: - fprintf(stderr, "bps %i not supported", tga->bits); + gd_error("bps %i not supported", tga->bits); return -1; break; } |