]> git.mxchange.org Git - flightgear.git/commitdiff
Bug 1023, crash on replay.
authorJames Turner <zakalawe@mac.com>
Sat, 9 Nov 2013 15:13:00 +0000 (07:13 -0800)
committerJames Turner <zakalawe@mac.com>
Sat, 9 Nov 2013 15:13:00 +0000 (07:13 -0800)
Fix by Jeff Biggs, commit 7d80b30d28baccf80958d9db488364a9a5c3884b from osgearth branch.

src/Aircraft/replay.cxx

index 30e5bf675eb4a09bcb30a7f0831717614c6ef743..c7008fd293098057af19ae9027feff8f7b18942e 100644 (file)
@@ -907,7 +907,7 @@ FGReplay::saveTape(const SGPropertyNode* ConfigData)
     struct tm *local_tm;
     local_tm = localtime( &calendar_time );
     char time_str[256];
-    strftime( time_str, 256, "%Y%02m%02d-%02H%02M%02S", local_tm);
+    strftime( time_str, 256, "%Y%m%d-%H%M%S", local_tm);
     p.concat(time_str);
     p.concat(".fgtape");