From: Bdale Garbee Date: Tue, 3 Jul 2012 20:10:32 +0000 (-0600) Subject: another wiggy in the UI X-Git-Tag: debian/5.1-13~3 X-Git-Url: https://git.gag.com/?p=debian%2Fgcpegg;a=commitdiff_plain;h=bb8632746deb59f3ab34fc99e79e58250a5da75d another wiggy in the UI --- 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);