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: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=611725bb6b16a00274f5449eb9ccef7ac8b606e4;p=openvswitch 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 f67a63f3..2fe8cfb6 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