summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {