Fix missing null-terminator in BLI_string_join_arrayN

Although the documentation says so, the null-terminator was missing.
This could cause crashes when logging shader linking errors as shader
sources are empty in this case.
This commit is contained in:
Kévin Dietrich 2021-10-20 13:20:44 +02:00 committed by Philipp Oeser
parent 272cb6157d
commit 554b1b1663
Notes: blender-bot 2023-02-13 12:29:37 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 1 additions and 0 deletions

View File

@ -470,6 +470,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]);
}
*c = '\0';
return result;
}