string-util: correct comment in strextendf_with_separator
authorMike Yuan <me@yhndnzj.com>
Fri, 12 Apr 2024 18:33:50 +0000 (02:33 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 12 Apr 2024 18:35:01 +0000 (02:35 +0800)
src/basic/string-util.c

index f3ab2dc2223a5c97671a0ad889c43e8a1de5f2e4..e775326e2919659ebed05a94730da9c29b4e157f 100644 (file)
@@ -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;
 }