Changeset - r5204:67bbb022333d
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-12-01 12:57:31
peter1138@openttd.org
(svn r7319) -Fix (r7182): (NewGRF) Add space for terminator when translating TTDPatch strings (thanks eddi)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
newgrf_text.c
Show inline comments
 
@@ -156,7 +156,7 @@ static byte _currentLangID = GRFLX_ENGLI
 

	
 
static char *TranslateTTDPatchCodes(const char *str)
 
{
 
	char *tmp = malloc(strlen(str) * 10); /* Allocate space to allow for expansion */
 
	char *tmp = malloc(strlen(str) * 10 + 1); /* Allocate space to allow for expansion */
 
	char *d = tmp;
 
	bool unicode = false;
 
	WChar c = Utf8Consume(&str);
0 comments (0 inline, 0 general)