projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
851b777
)
Need to convert characters to unsigned char before checking printability.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 25 Jul 2007 02:10:23 +0000
(
02:10
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 25 Jul 2007 02:10:23 +0000
(
02:10
+0000)
xmltooling/soap/impl/CURLSOAPTransport.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/soap/impl/CURLSOAPTransport.cpp
b/xmltooling/soap/impl/CURLSOAPTransport.cpp
index
7261a80
..
f1a6022
100644
(file)
--- a/
xmltooling/soap/impl/CURLSOAPTransport.cpp
+++ b/
xmltooling/soap/impl/CURLSOAPTransport.cpp
@@
-495,9
+495,8
@@
int xmltooling::curl_debug_hook(CURL* handle, curl_infotype type, char* data, si
// *ptr is actually a logging object
if (!ptr) return 0;
CategoryStream log=reinterpret_cast<Category*>(ptr)->debugStream();
// *ptr is actually a logging object
if (!ptr) return 0;
CategoryStream log=reinterpret_cast<Category*>(ptr)->debugStream();
- for (
char* ch=
data; len && (isprint(*ch) || isspace(*ch)); len--)
+ for (
unsigned char* ch=(unsigned char*)
data; len && (isprint(*ch) || isspace(*ch)); len--)
log << *ch++;
log << *ch++;
- log << CategoryStream::ENDLINE;
return 0;
}
return 0;
}