git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41458f2
)
Make ds_put_char_multiple() use the provided character instead of a space.
author
Ben Pfaff
<blp@nicira.com>
Thu, 11 Dec 2008 17:35:24 +0000
(09:35 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 11 Dec 2008 17:35:24 +0000
(09:35 -0800)
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
patch
|
blob
|
history
diff --git
a/lib/dynamic-string.c
b/lib/dynamic-string.c
index
f67a63f
..
2fe8cfb
100644
(file)
--- 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)
{
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
}
void