git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@706 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/07/30 20:53:06... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: message.c,v $ |
20 |
+ * Revision 1.68 2004/07/30 11:50:39 nigelhorne |
|
21 |
+ * Code tidy |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.67 2004/07/26 08:31:04 nigelhorne |
21 | 24 |
* Fix embedded multi parts |
22 | 25 |
* |
... | ... |
@@ -198,7 +201,7 @@ |
198 | 198 |
* uuencodebegin() no longer static |
199 | 199 |
* |
200 | 200 |
*/ |
201 |
-static char const rcsid[] = "$Id: message.c,v 1.67 2004/07/26 08:31:04 nigelhorne Exp $"; |
|
201 |
+static char const rcsid[] = "$Id: message.c,v 1.68 2004/07/30 11:50:39 nigelhorne Exp $"; |
|
202 | 202 |
|
203 | 203 |
#if HAVE_CONFIG_H |
204 | 204 |
#include "clamav-config.h" |
... | ... |
@@ -1399,6 +1402,7 @@ messageToText(message *m) |
1399 | 1399 |
unsigned char data[4]; |
1400 | 1400 |
unsigned char *ptr; |
1401 | 1401 |
|
1402 |
+ memset(data, '\0', sizeof(data)); |
|
1402 | 1403 |
ptr = decode(m, NULL, data, base64, FALSE); |
1403 | 1404 |
if(ptr) { |
1404 | 1405 |
if(first == NULL) |