1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 09:51:46 -05:00

Replace isgraph with our uppercase macro version

This commit is contained in:
Yang Tse 2007-11-15 13:12:35 +00:00
parent 4e731a0189
commit 738e4f410c

View File

@ -3422,7 +3422,7 @@ CURLcode _my_setopt(CURL *curl, struct Configurable *config, const char *name,
} }
/* attempt to figure out if it is a string (since the tag numerical doesn't /* attempt to figure out if it is a string (since the tag numerical doesn't
offer this info) and then output it as a string if so */ offer this info) and then output it as a string if so */
else if(pval && isgraph(ptr[0]) && isgraph(ptr[1]) && isgraph(ptr[2])) else if(pval && ISGRAPH(ptr[0]) && ISGRAPH(ptr[1]) && ISGRAPH(ptr[2]))
snprintf(value, sizeof(value), "\"%s\"", (char *)ptr); snprintf(value, sizeof(value), "\"%s\"", (char *)ptr);
else if(pval) { else if(pval) {
snprintf(value, sizeof(value), "%p", pval); snprintf(value, sizeof(value), "%p", pval);