cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
isspace() usage in cookie.c
From: Harshal Pradhan <keeda_at_hotpop.com>
Date: Thu, 23 Sep 2004 18:45:58 +0530
I am using curl 7.12.1 on windows (compiled with VC7.1).
With debug builds, some of my testcases that are sending cookies with
isspace() has an _ASSERTE((unsigned)(c + 1) <= 256)
And this fires when Curl_cookie_add() is stripping trailing whitespace.
Apparently, VC's isspace() has some table and this assert indicates that
So, what is right solution in this particular case? And what kind of
I can shut it up by casting like so
or doing something like
(what[len-1] > 0) && isspace((int)what[len-1])
Or something else ..... Thoughts?
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info