Need to convert characters to unsigned char before checking printability.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 25 Jul 2007 02:10:23 +0000 (02:10 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 25 Jul 2007 02:10:23 +0000 (02:10 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@358 de75baf8-a10c-0410-a50a-987c0e22f00f

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;
 }