summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-12 21:48:32 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-12 21:48:32 +0000
commitd926fa9f604c2d06c0642c97515bfaac5d7fc31d (patch)
tree8afedb32c5c8de23c39c8e757c9832a90febc4c3
parentb7c7ec107ee3931201c49f8a2a3f3611e034abd7 (diff)
downloadopenttd-d926fa9f604c2d06c0642c97515bfaac5d7fc31d.tar.xz
(svn r4855) - Fix r4854: Remove 4 character offset, as buff is already in correct place.
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 73dbabdcc..84439828d 100644
--- a/strings.c
+++ b/strings.c
@@ -329,7 +329,7 @@ static char *FormatYmdString(char *buff, uint16 number)
for (src = GetStringPtr(STR_0162_JAN + ymd.month); (*buff++ = *src++) != '\0';) {}
buff[-1] = ' ';
- return FormatNoCommaNumber(buff + 4, ymd.year + MAX_YEAR_BEGIN_REAL);
+ return FormatNoCommaNumber(buff, ymd.year + MAX_YEAR_BEGIN_REAL);
}
static char *FormatMonthAndYear(char *buff, uint16 number)