fix(string_view): cleanup memmcpy line artifacts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user