From: Bdale Garbee Date: Tue, 3 Jul 2012 20:06:19 +0000 (-0600) Subject: fix more seg faults on amd64 when NO_UI is not defined X-Git-Tag: debian/5.1-13~5 X-Git-Url: https://git.gag.com/?p=debian%2Fgcpegg;a=commitdiff_plain;h=0044f7218f9a1108a192334a94a4370310be8a33 fix more seg faults on amd64 when NO_UI is not defined --- 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);