projects
/
debian
/
gcpegg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63278f4
)
fix more seg faults on amd64 when NO_UI is not defined
author
Bdale Garbee
<bdale@thor.gag.com>
Tue, 3 Jul 2012 20:06:19 +0000
(14:06 -0600)
committer
Bdale Garbee
<bdale@thor.gag.com>
Tue, 3 Jul 2012 20:06:19 +0000
(14:06 -0600)
eggui.c
patch
|
blob
|
history
diff --git
a/eggui.c
b/eggui.c
index e3eb431fd3451681939b1df96c6df2dff0848e96..83a90923c846a3f41afbb846fe54b2c54953c9a8 100644
(file)
--- a/
eggui.c
+++ b/
eggui.c
@@
-132,11
+132,13
@@
int32 UIUpdate(int32 cres, CollectRecord *coll) {
move(line++, 5);
now = getzulutime(NULL);
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);
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);
tmstr[strlen(tmstr)-1] = 0;
printw("Last packet at %25s", lastDataSent == 0 ? "Never" : tmstr);