X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=eggui.c;h=b369e863fbde01af7c4bdb55611eb4ce0dbe0ac8;hb=58c1320219605d524d7be8ddb13644673a539d93;hp=83a90923c846a3f41afbb846fe54b2c54953c9a8;hpb=0044f7218f9a1108a192334a94a4370310be8a33;p=debian%2Fgcpegg diff --git a/eggui.c b/eggui.c index 83a9092..b369e86 100644 --- a/eggui.c +++ b/eggui.c @@ -126,7 +126,8 @@ int32 UIUpdate(int32 cres, CollectRecord *coll) { printw("EGG %s ID %d REG %s %s", eggtable[0].name, eggtable[0].id, configuredREG->reg_name, Version); - tmstr = ctime(&inittm); tmstr[strlen(tmstr)-1] = 0; + time_t inittm_val = inittm; + tmstr = ctime(&inittm_val); tmstr[strlen(tmstr)-1] = 0; move(line++, 5); printw("Up since %25s", tmstr);