mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
cli/dump: replace use of gzprintf with gzputs for config values
These can be large, and hit buffer limitations of gzprintf.
This commit is contained in:
parent
24ff33082a
commit
690e36bacd
2 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,9 @@ database_dump_config (notmuch_database_t *notmuch, gzFile output)
|
||||||
goto DONE;
|
goto DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GZPRINTF (output, " %s\n", buffer);
|
GZPUTS (output, " ");
|
||||||
|
GZPUTS (output, buffer);
|
||||||
|
GZPUTS (output, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = EXIT_SUCCESS;
|
ret = EXIT_SUCCESS;
|
||||||
|
|
|
@ -37,7 +37,6 @@ EOF
|
||||||
test_expect_equal_file QUERIES.BEFORE OUTPUT
|
test_expect_equal_file QUERIES.BEFORE OUTPUT
|
||||||
|
|
||||||
test_begin_subtest 'dumping large queries'
|
test_begin_subtest 'dumping large queries'
|
||||||
test_subtest_known_broken
|
|
||||||
# This value is just large enough to trigger a limitation of gzprintf
|
# This value is just large enough to trigger a limitation of gzprintf
|
||||||
# to 8191 bytes in total (by default).
|
# to 8191 bytes in total (by default).
|
||||||
repeat=1329
|
repeat=1329
|
||||||
|
|
Loading…
Add table
Reference in a new issue