projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
947143e
)
string-util: correct comment in strextendf_with_separator
author
Mike Yuan
<me@yhndnzj.com>
Fri, 12 Apr 2024 18:33:50 +0000
(
02:33
+0800)
committer
Mike Yuan
<me@yhndnzj.com>
Fri, 12 Apr 2024 18:35:01 +0000
(
02:35
+0800)
src/basic/string-util.c
patch
|
blob
|
history
diff --git
a/src/basic/string-util.c
b/src/basic/string-util.c
index f3ab2dc2223a5c97671a0ad889c43e8a1de5f2e4..e775326e2919659ebed05a94730da9c29b4e157f 100644
(file)
--- a/
src/basic/string-util.c
+++ b/
src/basic/string-util.c
@@
-998,7
+998,7
@@
int strextendf_with_separator(char **x, const char *separator, const char *forma
return 0;
oom:
- /* truncate the bytes added after
the first vsnprintf() attempt
again */
+ /* truncate the bytes added after
memcpy_safe()
again */
(*x)[m] = 0;
return -ENOMEM;
}