bozo-corefile-timestamp-fix-20090216
authorPeter Tripician <tripicia@cmf.nrl.navy.mil>
Tue, 17 Feb 2009 04:32:08 +0000 (04:32 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Feb 2009 04:32:08 +0000 (04:32 +0000)
LICENSE IPL10
FIXES 124340

output y2k-correct corefile names

src/bozo/bnode.c

index 417c53f..9d32684 100644 (file)
@@ -147,7 +147,7 @@ SaveCore(register struct bnode *abnode, register struct bnode_proc
     FT_GetTimeOfDay(&Start, 0);
     TimeFields = localtime(&Start.tv_sec);
     sprintf(FileName, "%s.%d%02d%02d%02d%02d%02d", tbuffer,
-           TimeFields->tm_year, TimeFields->tm_mon + 1, TimeFields->tm_mday,
+           TimeFields->tm_year + 1900, TimeFields->tm_mon + 1, TimeFields->tm_mday,
            TimeFields->tm_hour, TimeFields->tm_min, TimeFields->tm_sec);
     strcpy(tbuffer, FileName);
 #endif