From 57cf2138522f3dacf26ea30c6f32a800def70209 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 30 Jan 2008 13:33:17 +0000 Subject: fixed a bug that could cause invalid string handling via strerror_r varmojfekoj provided the patch - many thanks! --- tcpsyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcpsyslog.c') diff --git a/tcpsyslog.c b/tcpsyslog.c index 80f0d82a..0674f669 100644 --- a/tcpsyslog.c +++ b/tcpsyslog.c @@ -1051,7 +1051,7 @@ int TCPSendCreateSocket(struct addrinfo *addrDest) } else { char errStr[1024]; dbgprintf("create tcp connection failed, reason %s", - strerror_r(errno, errStr, sizeof(errStr))); + rs_strerror_r(errno, errStr, sizeof(errStr))); } } @@ -1062,7 +1062,7 @@ int TCPSendCreateSocket(struct addrinfo *addrDest) } else { char errStr[1024]; - dbgprintf("couldn't create send socket, reason %s", strerror_r(errno, errStr, sizeof(errStr))); + dbgprintf("couldn't create send socket, reason %s", rs_strerror_r(errno, errStr, sizeof(errStr))); } r = r->ai_next; } -- cgit