summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:33:17 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:33:17 +0000
commit57cf2138522f3dacf26ea30c6f32a800def70209 (patch)
tree226dcea739dca9fd268fac31afecbcab229b8831 /net.c
parent61b10104612b3d776399f853f399e64ffe175e65 (diff)
downloadrsyslog-57cf2138522f3dacf26ea30c6f32a800def70209.tar.gz
rsyslog-57cf2138522f3dacf26ea30c6f32a800def70209.tar.xz
rsyslog-57cf2138522f3dacf26ea30c6f32a800def70209.zip
fixed a bug that could cause invalid string handling via strerror_r
varmojfekoj provided the patch - many thanks!
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index e5807ec3..4654282f 100644
--- a/net.c
+++ b/net.c
@@ -578,7 +578,7 @@ int should_use_so_bsdcompat(void)
init_done = 1;
if (uname(&utsname) < 0) {
char errStr[1024];
- dbgprintf("uname: %s\r\n", strerror_r(errno, errStr, sizeof(errStr)));
+ dbgprintf("uname: %s\r\n", rs_strerror_r(errno, errStr, sizeof(errStr)));
return 1;
}
/* Format is <version>.<patchlevel>.<sublevel><extraversion>