Revision: 7181
http://svn.sourceforge.net/mahogany/?rev=7181&view=rev
Author: vadz
Date: 2006-12-23 15:08:59 -0800 (Sat, 23 Dec 2006)
Log Message:
-----------
fix (harmless) asserts from MSVC RTL when passing non ASCII characters to
isspace()
Modified Paths:
--------------
trunk/M/lib/dspam/src/decode.c
Modified: trunk/M/lib/dspam/src/decode.c
===================================================================
--- trunk/M/lib/dspam/src/decode.c 2006-12-23 23:07:53 UTC (rev 7180)
+++ trunk/M/lib/dspam/src/decode.c 2006-12-23 23:08:59 UTC (rev 7181)
@@ -148,7 +148,8 @@
}
/* Our concatenated data doesn't have any whitespace between lines */
- for(eow=line;eow[0] && isspace((int) eow[0]);eow++) { }
+ for ( eow = line; *eow && *eow < 255 && isspace(*eow); eow++ )
+ ;
ptr =
realloc (current_heading->concatenated_data,
@@ -1095,7 +1096,7 @@
return EFAILURE;
}
ptr++;
- while(isspace((int) ptr[0]))
+ while(*ptr < 255 && isspace(*ptr))
ptr++;
if (ptr[0] == '"')
ptr++;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates