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:
parent
5647c5dadc
commit
185b76a08a
@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user