Browse code

fix incorrect use of isspace() in experimental code

git-svn: trunk@2750

Tomasz Kojm authored on 2007/02/14 21:16:33
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Feb 14 13:15:25 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamav/entconv.c: fix incorrect use of isspace() in experimental code
4
+
1 5
 Tue Feb 13 22:34:40 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * libclamav: fix some debug messages
... ...
@@ -940,7 +940,7 @@ unsigned char* encoding_norm_readline(struct entity_conv* conv, FILE* stream_in,
940 940
 					cli_dbgmsg("Skipping null character in html stream\n");
941 941
 			}
942 942
 			}
943
-			else if((u16 < 0x80 && u16 >= 0x20) || isspace(u16)) {
943
+			else if((u16 < 0x80 && u16 >= 0x20) || (u16 <= 0xff && isspace(u16))) {
944 944
 				if(norm >= norm_end)
945 945
 					break;
946 946
 				if((unsigned char)u16 ==0)