projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e731a0
)
Replace isgraph with our uppercase macro version
author
Yang Tse
<yangsita@gmail.com>
Thu, 15 Nov 2007 13:12:35 +0000
(13:12 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Thu, 15 Nov 2007 13:12:35 +0000
(13:12 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
4f9b3e4
..
d1b7009
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-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
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);
else if(pval) {
snprintf(value, sizeof(value), "%p", pval);