summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net.c b/net.c
index ee2c0d9d..bcefad41 100644
--- a/net.c
+++ b/net.c
@@ -65,8 +65,9 @@ int should_use_so_bsdcompat(void)
init_done = 1;
if (uname(&utsname) < 0) {
- dbgprintf("uname: %s\r\n", strerror(errno));
- return 1;
+ char errStr[1024];
+ dbgprintf("uname: %s\r\n", strerror_r(errno, errStr, sizeof(errStr)));
+ return 1;
}
/* Format is <version>.<patchlevel>.<sublevel><extraversion>
where the first three are unsigned integers and the last