From 9dc2d7f8fef2652b8d8f7ee49a5f63c0d0e1e5a5 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 1 Oct 2008 19:02:50 +0000 Subject: avoid deprecated error strings, part 3 --- vchat-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vchat-protocol.c') diff --git a/vchat-protocol.c b/vchat-protocol.c index af06c6a..aefe419 100755 --- a/vchat-protocol.c +++ b/vchat-protocol.c @@ -831,7 +831,7 @@ networkinput (void) /* no bytes transferred? raise error message, bail out */ if (bytes < 0) { - snprintf (tmpstr, TMPSTRSIZE, "Receive fails, %s.", sys_errlist[errno]); + snprintf (tmpstr, TMPSTRSIZE, "Receive fails, %s.", strerror(errno)); strncpy(errstr,tmpstr,TMPSTRSIZE-2); errstr[TMPSTRSIZE-2] = '\0'; strcat(errstr,"\n"); -- cgit v1.2.3