1
1

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:
2021-10-20 13:20:44 +02:00
parent 1de8374374
commit 010e675b1b

View File

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