]> granicus.if.org Git - curl/commitdiff
testtrace.c: fix compiler warning
authorYang Tse <yangsita@gmail.com>
Thu, 19 Jan 2012 21:54:57 +0000 (22:54 +0100)
committerYang Tse <yangsita@gmail.com>
Thu, 19 Jan 2012 21:54:57 +0000 (22:54 +0100)
tests/libtest/testtrace.c

index 9c082394efa62c941a13695ad7252d5447d29647..5cb5fec5e2f2731aa251e93c3d91d5b1b569971c 100644 (file)
@@ -111,7 +111,7 @@ int libtest_debug_cb(CURL *handle, curl_infotype type,
 
   switch (type) {
   case CURLINFO_TEXT:
-    fprintf(stderr, "%s== Info: %s", timebuf, data);
+    fprintf(stderr, "%s== Info: %s", &timebuf[0], data);
   default: /* in case a new one is introduced to shock us */
     return 0;