summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
authorerdgeist <>2008-10-01 19:01:32 +0000
committererdgeist <>2008-10-01 19:01:32 +0000
commitd27adde65b922f917a257a6e6e88a393e73ff128 (patch)
treed11d6e0f53a099aa6a17534639762b9b9a6621df /vchat-client.c
parent1599e68c1fd3143d0beee456a0361c0f17547cb0 (diff)
avoid deprecated error strings, part 2
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 28552f3..579326a 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -430,7 +430,7 @@ eventloop (void)
430 /* EINTR is most likely a SIGWINCH - ignore for now */ 430 /* EINTR is most likely a SIGWINCH - ignore for now */
431 if (errno != EINTR) 431 if (errno != EINTR)
432 { 432 {
433 snprintf (tmpstr, TMPSTRSIZE, "Select fails, %s.", sys_errlist[errno]); 433 snprintf (tmpstr, TMPSTRSIZE, "Select fails, %s.", strerror(errno));
434 strncpy(errstr,tmpstr,TMPSTRSIZE-2); 434 strncpy(errstr,tmpstr,TMPSTRSIZE-2);
435 errstr[TMPSTRSIZE-2] = '\0'; 435 errstr[TMPSTRSIZE-2] = '\0';
436 strcat(errstr,"\n"); 436 strcat(errstr,"\n");