REVIEWED: TextJoin(), convert const char ** to char**

It generates multiple issues: https://c-faq.com/ansi/constmismatch.html
This commit is contained in:
Ray
2025-01-11 23:38:21 +01:00
parent 8e450e4446
commit e227371265
2 changed files with 2 additions and 2 deletions

View File

@@ -1629,7 +1629,7 @@ char *TextInsert(const char *text, const char *insert, int position)
// Join text strings with delimiter
// REQUIRES: memset(), memcpy()
char *TextJoin(const char **textList, int count, const char *delimiter)
char *TextJoin(char **textList, int count, const char *delimiter)
{
static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);