From bb8632746deb59f3ab34fc99e79e58250a5da75d Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 3 Jul 2012 14:10:32 -0600 Subject: [PATCH] another wiggy in the UI --- eggui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2