Don't use sizeof to get size of array, it doesn't work

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-08-19 01:43:40 +00:00
parent 5647c5dadc
commit 185b76a08a

View File

@ -41,7 +41,7 @@ public:
{
const struct tm *t = gmtime(&tt);
char s[16];
strftime(s, sizeof(s), "%d.%m.%Y", t);
strftime(s, 16, "%d.%m.%Y", t);
return s;
} // toString
// ------------------------------------------------------------------------