another wiggy in the UI
authorBdale Garbee <bdale@thor.gag.com>
Tue, 3 Jul 2012 20:10:32 +0000 (14:10 -0600)
committerBdale Garbee <bdale@thor.gag.com>
Tue, 3 Jul 2012 20:10:32 +0000 (14:10 -0600)
eggui.c

diff --git a/eggui.c b/eggui.c
index 83a90923c846a3f41afbb846fe54b2c54953c9a8..b369e863fbde01af7c4bdb55611eb4ce0dbe0ac8 100644 (file)
--- 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);