git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@881 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/09/16 22:31:20... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Sep 16 14:30:15 BST 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * libclamav/htmlnorm.c: properly initialise output buffer |
|
4 |
+ |
|
1 | 5 |
Thu Sep 16 14:00:05 BST 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mbox.c: Handle broken email headers that use equals signs or |
... | ... |
@@ -999,6 +999,8 @@ int html_screnc_decode(int fd, const char *dirname) |
999 | 999 |
|
1000 | 1000 |
snprintf(filename, 1024, "%s/screnc.html", dirname); |
1001 | 1001 |
file_buff.fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); |
1002 |
+ file_buff.length = 0; |
|
1003 |
+ |
|
1002 | 1004 |
if (!file_buff.fd) { |
1003 | 1005 |
cli_dbgmsg("open failed: %s\n", filename); |
1004 | 1006 |
fclose(stream_in); |