]> git.notmuchmail.org Git - notmuch/commitdiff
cli/dump: replace use of gzprintf with gzputs for config values
authorDavid Bremner <david@tethera.net>
Mon, 13 Apr 2020 02:01:38 +0000 (23:01 -0300)
committerDavid Bremner <david@tethera.net>
Mon, 13 Apr 2020 20:14:50 +0000 (17:14 -0300)
These can be large, and hit buffer limitations of gzprintf.

notmuch-dump.c
test/T600-named-queries.sh

index 52a882837e41025335bdb6f3a5ac264c9d07ea91..887ef7f0179ab872ab7280e1ade03e15d6e1124a 100644 (file)
@@ -51,7 +51,9 @@ database_dump_config (notmuch_database_t *notmuch, gzFile output)
            goto DONE;
        }
 
-       GZPRINTF (output, " %s\n", buffer);
+       GZPUTS (output, " ");
+       GZPUTS (output, buffer);
+       GZPUTS (output, "\n");
     }
 
     ret = EXIT_SUCCESS;
index 852f75305589a6b62c678f3236eef8da0d5352b3..421a11d42b493c858d0cb92262594c28756209c3 100755 (executable)
@@ -37,7 +37,6 @@ EOF
 test_expect_equal_file QUERIES.BEFORE OUTPUT
 
 test_begin_subtest 'dumping large queries'
-test_subtest_known_broken
 # This value is just large enough to trigger a limitation of gzprintf
 # to 8191 bytes in total (by default).
 repeat=1329