aboutsummaryrefslogtreecommitdiff
path: root/notmuch-dump.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-04-12 23:01:38 -0300
committerDavid Bremner <david@tethera.net>2020-04-13 17:14:50 -0300
commit690e36bacd5e53c45775586024ca70f069ca68ad (patch)
treeb88811c87f3f5748b186afb55cdde8b2d04387aa /notmuch-dump.c
parent24ff33082ab1a35c7a31835fba80ade145596422 (diff)
cli/dump: replace use of gzprintf with gzputs for config values
These can be large, and hit buffer limitations of gzprintf.
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index 52a88283..887ef7f0 100644
--- a/notmuch-dump.c
+++ b/notmuch-dump.c
@@ -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;