Need to convert characters to unsigned char before checking printability.
authorScott Cantor <cantor.2@osu.edu>
Wed, 25 Jul 2007 02:10:23 +0000 (02:10 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 25 Jul 2007 02:10:23 +0000 (02:10 +0000)
xmltooling/soap/impl/CURLSOAPTransport.cpp

index 7261a80..f1a6022 100644 (file)
@@ -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();
-    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 << CategoryStream::ENDLINE;
     return 0;
 }