]> granicus.if.org Git - curl/commitdiff
More "\n" ESCaping
authorGisle Vanem <gisle.vanem@gmail.com>
Wed, 7 Nov 2018 12:32:17 +0000 (13:32 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 12:32:17 +0000 (13:32 +0100)
docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3

index 69b6db07b2655c46631bb5dedf1fbdc5d50bc883..8a7afb6207318ce657acc1b19c620f8fdf58cce3 100644 (file)
@@ -70,20 +70,20 @@ static long file_is_coming(struct curl_fileinfo *finfo,
 
   switch(finfo->filetype) {
   case CURLFILETYPE_DIRECTORY:
-    printf(" DIR\n");
+    printf(" DIR\\n");
     break;
   case CURLFILETYPE_FILE:
     printf("FILE ");
     break;
   default:
-    printf("OTHER\n");
+    printf("OTHER\\n");
     break;
   }
 
   if(finfo->filetype == CURLFILETYPE_FILE) {
     /* do not transfer files >= 50B */
     if(finfo->size > 50) {
-      printf("SKIPPED\n");
+      printf("SKIPPED\\n");
       return CURL_CHUNK_BGN_FUNC_SKIP;
     }