From 1599e68c1fd3143d0beee456a0361c0f17547cb0 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 1 Oct 2008 18:54:10 +0000 Subject: avoid deprecated error strings --- vchat-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vchat-client.c b/vchat-client.c index 389c486..28552f3 100755 --- a/vchat-client.c +++ b/vchat-client.c @@ -188,7 +188,7 @@ loadcfg (char *file,void (*lineparser) (char *)) tildex = file; fd = open(tildex,O_RDONLY); if (fd == -1) { - snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", tildex, sys_errlist[errno]); + snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", tildex, strerror(errno)); } else { while ((bytes = read(fd,&buf[bufoff],BUFSIZE-bufoff-1))) { if (bytes < 0) { -- cgit v1.2.3