Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed XML logger. EscapeString didn't from strings properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Jul 3, 2011
1 parent 098bb13 commit e4bf7eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test-automation/xml.c
Expand Up @@ -159,6 +159,7 @@ EscapeString(const char *string)
break;
}
}
totalSize += 1; // for '\0'

char *retBuffer = SDL_malloc(totalSize * sizeof(char));
if(retBuffer == NULL) {
Expand Down Expand Up @@ -212,6 +213,8 @@ EscapeString(const char *string)

}

retBuffer[retBufferCounter] = '\0';

return retBuffer;
}

Expand Down

0 comments on commit e4bf7eb

Please sign in to comment.