Commit bd37c130 authored by Markus Kauppila's avatar Markus Kauppila

Fixed XML logger. EscapeString didn't from strings properly.

parent db5086bf
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment