summaryrefslogtreecommitdiffstats
path: root/omfwd.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 /omfwd.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 'omfwd.c')
-rw-r--r--omfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omfwd.c b/omfwd.c
index 66b8a055..d63ae1bf 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -188,7 +188,7 @@ static rsRetVal UDPSend(instanceData *pData, char *msg, size_t len)
int eno = errno;
char errStr[1024];
dbgprintf("sendto() error: %d = %s.\n",
- eno, strerror_r(eno, errStr, sizeof(errStr)));
+ eno, rs_strerror_r(eno, errStr, sizeof(errStr)));
}
}
if (lsent == len && !send_to_all)