Browse code

fix loading of .cld files on some platforms (bb#770)

git-svn: trunk@3497

Tomasz Kojm authored on 2008/01/12 07:19:37
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Jan 11 22:50:33 CET 2008 (tk)
2
+---------------------------------
3
+  * libclamav/cvd.c: fix loading of .cld files on some platforms (bb#770)
4
+
1 5
 Thu Jan 10 20:08:58 CET 2008 (tk)
2 6
 ---------------------------------
3 7
   * libclamav: avoid holes in often used data structures (bb#748);
... ...
@@ -200,6 +200,8 @@ static int cli_tgzload(int fd, struct cl_engine **engine, unsigned int *signo, u
200 200
 	return CL_EIO;
201 201
     }
202 202
 
203
+    gzseek(infile, 512, SEEK_SET);
204
+
203 205
     while(1) {
204 206
 
205 207
 	nread = gzread(infile, block, TAR_BLOCKSIZE);