git-svn: trunk@2849
Nigel Horne authored on 2007/02/24 02:33:47... | ... |
@@ -1594,7 +1594,11 @@ parseEmailFile(FILE *fin, const table_t *rfc821, const char *firstLine, const ch |
1594 | 1594 |
if(inHeader) { |
1595 | 1595 |
cli_dbgmsg("parseEmailFile: check '%s' fullline %p\n", |
1596 | 1596 |
buffer ? buffer : "", fullline); |
1597 |
- if(line && isspace(line[0])) { |
|
1597 |
+ /* |
|
1598 |
+ * Ensure wide characters are handled where |
|
1599 |
+ * sizeof(char) > 1 |
|
1600 |
+ */ |
|
1601 |
+ if(line && isspace(line[0] & 0xFF)) { |
|
1598 | 1602 |
char copy[sizeof(buffer)]; |
1599 | 1603 |
|
1600 | 1604 |
strcpy(copy, buffer); |