summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
authorerdgeist <>2008-10-01 18:54:10 +0000
committererdgeist <>2008-10-01 18:54:10 +0000
commit1599e68c1fd3143d0beee456a0361c0f17547cb0 (patch)
treea3234f97e533195f0c6ca16b24397558c4937e32 /vchat-client.c
parentbe82ccedeb730c1a7035789aedcbc4fe7fe0fee3 (diff)
avoid deprecated error strings
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-xvchat-client.c2
1 files changed, 1 insertions, 1 deletions
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 *))
188 tildex = file; 188 tildex = file;
189 fd = open(tildex,O_RDONLY); 189 fd = open(tildex,O_RDONLY);
190 if (fd == -1) { 190 if (fd == -1) {
191 snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", tildex, sys_errlist[errno]); 191 snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", tildex, strerror(errno));
192 } else { 192 } else {
193 while ((bytes = read(fd,&buf[bufoff],BUFSIZE-bufoff-1))) { 193 while ((bytes = read(fd,&buf[bufoff],BUFSIZE-bufoff-1))) {
194 if (bytes < 0) { 194 if (bytes < 0) {