From 611725bb6b16a00274f5449eb9ccef7ac8b606e4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 11 Dec 2008 09:35:24 -0800 Subject: [PATCH] Make ds_put_char_multiple() use the provided character instead of a space. Fortunately this function was only used for formatting log messages, in a context where spaces were the normal padding character. Found by Chris Eagle. --- lib/dynamic-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index f67a63f33..2fe8cfb6e 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -91,7 +91,7 @@ ds_put_char(struct ds *ds, char c) void ds_put_char_multiple(struct ds *ds, char c, size_t n) { - memset(ds_put_uninit(ds, n), ' ', n); + memset(ds_put_uninit(ds, n), c, n); } void -- 2.43.0