From: Ben Pfaff Date: Thu, 11 Dec 2008 17:35:24 +0000 (-0800) Subject: Make ds_put_char_multiple() use the provided character instead of a space. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=611725bb6b16a00274f5449eb9ccef7ac8b606e4;p=sliver-openvswitch.git 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. --- 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