(svn r4854) - Codechange: don't assume a short format month is 3 characters -- copy the string in the same way the other parts

are copied.
This commit is contained in:
peter1138 2006-05-12 19:30:49 +00:00
parent 14eec984df
commit b7c7ec107e
1 changed files with 3 additions and 3 deletions

View File

@ -324,10 +324,10 @@ static char *FormatYmdString(char *buff, uint16 number)
ConvertDayToYMD(&ymd, number);
for (src = GetStringPtr(ymd.day + STR_01AC_1ST - 1); (*buff++ = *src++) != '\0';) {}
buff[-1] = ' ';
memcpy(buff, GetStringPtr(STR_0162_JAN + ymd.month), 4);
buff[3] = ' ';
for (src = GetStringPtr(STR_0162_JAN + ymd.month); (*buff++ = *src++) != '\0';) {}
buff[-1] = ' ';
return FormatNoCommaNumber(buff + 4, ymd.year + MAX_YEAR_BEGIN_REAL);
}