projects
/
archipelago
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make init_log_ctx safer
[archipelago]
/
xseg
/
sys
/
user
/
_sysutil.h
diff --git
a/xseg/sys/user/_sysutil.h
b/xseg/sys/user/_sysutil.h
index
f580aed
..
99074ea
100644
(file)
--- a/
xseg/sys/user/_sysutil.h
+++ b/
xseg/sys/user/_sysutil.h
@@
-7,9
+7,11
@@
#include <string.h>
#include <sys/time.h>
+#define MAX_PEER_NAME 64
+
struct log_ctx {
FILE *logfile;
- char *peer_name;
+ char peer_name[MAX_PEER_NAME];
unsigned int log_level;
};