Fixed XML logger. EscapeString didn't from strings properly.
This commit is contained in:
parent
db5086bfea
commit
bd37c13002
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,7 @@ EscapeString(const char *string)
|
|||
break;
|
||||
}
|
||||
}
|
||||
totalSize += 1; // for '\0'
|
||||
|
||||
char *retBuffer = SDL_malloc(totalSize * sizeof(char));
|
||||
if(retBuffer == NULL) {
|
||||
|
@ -212,6 +213,8 @@ EscapeString(const char *string)
|
|||
|
||||
}
|
||||
|
||||
retBuffer[retBufferCounter] = '\0';
|
||||
|
||||
return retBuffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue