From 0044f7218f9a1108a192334a94a4370310be8a33 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 3 Jul 2012 14:06:19 -0600 Subject: [PATCH] fix more seg faults on amd64 when NO_UI is not defined --- eggui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eggui.c b/eggui.c index e3eb431..83a9092 100644 --- a/eggui.c +++ b/eggui.c @@ -132,11 +132,13 @@ int32 UIUpdate(int32 cres, CollectRecord *coll) { move(line++, 5); now = getzulutime(NULL); - tmstr = ctime(&now); tmstr[strlen(tmstr)-1] = 0; + time_t now_val = now; + tmstr = ctime(&now_val); tmstr[strlen(tmstr)-1] = 0; printw("Last sample at %25s", tmstr); move(line++, 5); - tmstr = ctime(&lastDataSent); + time_t lastDataSent_val = lastDataSent; + tmstr = ctime(&lastDataSent_val); tmstr[strlen(tmstr)-1] = 0; printw("Last packet at %25s", lastDataSent == 0 ? "Never" : tmstr); -- 2.30.2