From dbbc86ffbdaa9a09069b3dd07c3adeef6cd419ac Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 13 Apr 2024 02:33:50 +0800 Subject: [PATCH] string-util: correct comment in strextendf_with_separator --- src/basic/string-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/string-util.c b/src/basic/string-util.c index f3ab2dc2223..e775326e291 100644 --- 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; } -- 2.47.3