Docs: note why BLI_string_join_arrayN needs to nil terminate
This commit is contained in:
parent
5faa333e78
commit
cfbac9032b
|
@ -469,6 +469,7 @@ char *BLI_string_join_arrayN(const char *strings[], uint strings_len)
|
|||
for (uint i = 0; i < strings_len; i++) {
|
||||
c += BLI_strcpy_rlen(c, strings[i]);
|
||||
}
|
||||
/* Only needed when `strings_len == 0`. */
|
||||
*c = '\0';
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue