diff options
author | rubidium <rubidium@openttd.org> | 2014-04-23 21:12:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-23 21:12:09 +0000 |
commit | 5b82822c12e014771dceaf9d909e1c0f3653c5a9 (patch) | |
tree | 1cf02e076eb61eb94d9064c7cb02bbe85ecb9a6c /src/strings.cpp | |
parent | ef4c2ce0317ae583e837722b6a41ea44cd83da71 (diff) | |
download | openttd-5b82822c12e014771dceaf9d909e1c0f3653c5a9.tar.xz |
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 64692ef00..23a8804ab 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -433,8 +433,8 @@ static char *FormatTinyOrISODate(char *buff, Date date, StringID str, const char char day[3]; char month[3]; /* We want to zero-pad the days and months */ - snprintf(day, lengthof(day), "%02i", ymd.day); - snprintf(month, lengthof(month), "%02i", ymd.month + 1); + seprintf(day, lastof(day), "%02i", ymd.day); + seprintf(month, lastof(month), "%02i", ymd.month + 1); int64 args[] = {(int64)(size_t)day, (int64)(size_t)month, ymd.year}; StringParameters tmp_params(args); |