diff options
author | pancake <pancake@flubox> | 2008-12-19 19:39:27 +0100 |
---|---|---|
committer | pancake <pancake@flubox> | 2008-12-19 19:39:27 +0100 |
commit | a6ef73359c0e0537ebf83795ebacbbfaee2c9c28 (patch) | |
tree | 1db2cc7c531927be96c581e4077500918ad45ac4 /logotool/compress.c | |
parent | 3a1053b29e5fb8109463259ee9dff3d8f4e4be5b (diff) | |
download | 0xFFFF-a6ef73359c0e0537ebf83795ebacbbfaee2c9c28.tar.bz2 |
* Apply security patches from Erik Hovland - Thanks!
Diffstat (limited to 'logotool/compress.c')
-rw-r--r-- | logotool/compress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/logotool/compress.c b/logotool/compress.c index c65158c..cb32265 100644 --- a/logotool/compress.c +++ b/logotool/compress.c @@ -60,6 +60,7 @@ int compress_image(char *srcf, char *dstf, int w, int h) fdout = open( dstf, O_TRUNC | O_CREAT | O_WRONLY , 0660 ); if (fdout == -1) { printf("Cannot open file '%s' for writing\n", dstf); + fclose(fd); return 1; } |