strbuf: make length for strbuf_add_string() optional

This commit is contained in:
Yu Watanabe
2024-06-12 18:19:29 +09:00
parent 34d4e6f32a
commit 3bc70f104e
5 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ int catalog_update(const char* database, const char* root, const char* const* di
SD_ID128_FORMAT_VAL(i->id),
isempty(i->language) ? "C" : i->language);
offset = strbuf_add_string(sb, payload, strlen(payload));
offset = strbuf_add_string(sb, payload);
if (offset < 0)
return log_oom();