Browse code

fix possible crash in build(), thanks to Sven

git-svn: trunk@1872

Tomasz Kojm authored on 2006/03/26 01:37:19
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Mar 25 17:35:30 CET 2006 (tk)
2
+---------------------------------
3
+  * sigtool/sigtool.c: fix possible crash in build(), thanks to Sven
4
+
1 5
 Sat Mar 25 01:05:50 CET 2006 (tk)
2 6
 ---------------------------------
3 7
   * libclamav: optimise scanning of SFX archives
... ...
@@ -236,7 +236,7 @@ int build(struct optstruct *opt)
236 236
 {
237 237
 	int ret, no = 0, realno = 0, bytes, itmp;
238 238
 	struct stat foo;
239
-	char buffer[FILEBUFF], *tarfile = NULL, *gzfile = NULL, header[512],
239
+	char buffer[FILEBUFF], *tarfile = NULL, *gzfile = NULL, header[513],
240 240
 	     smbuff[30], *pt, *dbdir;
241 241
         struct cl_node *root = NULL;
242 242
 	FILE *tar, *cvd, *fd;