]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 13 Nov 2002 13:26:05 +0000 (13:26 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 13 Nov 2002 13:26:05 +0000 (13:26 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1514 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/strftime.c

index 979f40c2a4519b803d18702837bbf345b7598708..467d13516452c958f896503434a2dbf77298d289 100644 (file)
@@ -166,7 +166,7 @@ size_t __fastcall__ strftime (char* buf, size_t bufsize, const char* format,
                     break;
 
                 case 'b':
-                    sprintf (arg, "%.3s", months[tm->tm_mday]);
+                    sprintf (arg, "%.3s", months[tm->tm_mon]);
                     break;
 
                 case 'c':