]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed another printf() format string issue.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 03:32:48 +0000 (23:32 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 03:32:48 +0000 (23:32 -0400)
Source/GameTick.cpp

index b6378d134014e9bb515149b5da05c69797f235fd..2534d7c17de0c1b7d2d293bcc13710ef6c2ee783 100644 (file)
@@ -3270,7 +3270,7 @@ void      Game::Tick()
                                                                //longnum = 1111111111111111;
                                                                num1 = longnum/100000000;
                                                                num2 = longnum%100000000;
-                                                               sprintf (tempstring, "%d-%d-%d-%d\0\0\0\0\0", num1/10000, num1%10000, num2/10000, num2%10000);
+                                                               sprintf (tempstring, "%ld-%ld-%ld-%ld\0\0\0\0\0", num1/10000, num1%10000, num2/10000, num2%10000);
 
                                                                int goodcode=3;
                                                                int numchars=3;