git-svn: trunk@2147
Nigel Horne authored on 2006/07/30 22:16:28... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Sun Jul 30 14:15:33 BST 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/message.c: Improved handling of characters with the top |
|
4 |
+ bit set |
|
5 |
+ |
|
1 | 6 |
Sun Jul 30 11:09:22 BST 2006 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: Fixed (remote possibility) memory leak, reported |
... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: message.c,v 1.181 2006/07/25 15:09:45 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: message.c,v 1.182 2006/07/30 13:14:59 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#if HAVE_CONFIG_H |
22 | 22 |
#include "clamav-config.h" |
... | ... |
@@ -841,7 +841,7 @@ messageAddStr(message *m, const char *data) |
841 | 841 |
const char *p; |
842 | 842 |
|
843 | 843 |
for(p = data; *p; p++) |
844 |
- if(!isspace(*p)) { |
|
844 |
+ if(((*p) & 0x80) || (!isspace((*p) & 0x7F))) { |
|
845 | 845 |
iswhite = 0; |
846 | 846 |
break; |
847 | 847 |
} |