mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
Fixed XML logger. EscapeString didn't from strings properly.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user