diff options
author | erdgeist <> | 2008-10-01 18:54:10 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-01 18:54:10 +0000 |
commit | 1599e68c1fd3143d0beee456a0361c0f17547cb0 (patch) | |
tree | a3234f97e533195f0c6ca16b24397558c4937e32 | |
parent | be82ccedeb730c1a7035789aedcbc4fe7fe0fee3 (diff) |
avoid deprecated error strings
-rwxr-xr-x | vchat-client.c | 2 |
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) { |