fix(string_view): cleanup memmcpy line artifacts

This commit is contained in:
2026-04-12 17:17:57 +02:00
parent a2a91bbce9
commit 13cf7946bf
3 changed files with 35 additions and 4 deletions

View File

@@ -175,10 +175,10 @@ char *sv_clone(StringView sv);
///
///@brief Concatenate a list of string views with a separator. The result must
///be freed
/// be freed
///
///@return char a null-terminated string containing all svs separated with sep.
///Must be freed
/// Must be freed
///
char *sv_concat_with_sep(const StringView *svs, size_t n, StringView sep);
@@ -340,7 +340,7 @@ char *sv_concat_with_sep(const StringView *svs, size_t n, StringView sep) {
}
size_t l = sv_len(svs[i]);
memcpy(wri
memcpy(write_head, svs[i].data, l);
write_head += l;
}