diff options
-rwxr-xr-x | vchat-client.c | 2 | ||||
-rwxr-xr-x | vchat-protocol.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vchat-client.c b/vchat-client.c index 579326a..11c39d3 100755 --- a/vchat-client.c +++ b/vchat-client.c | |||
@@ -530,7 +530,7 @@ main (int argc, char **argv) | |||
530 | /* attempt connection */ | 530 | /* attempt connection */ |
531 | if (!vcconnect (getstroption(CF_SERVERHOST), getstroption(CF_SERVERPORT))) { | 531 | if (!vcconnect (getstroption(CF_SERVERHOST), getstroption(CF_SERVERPORT))) { |
532 | snprintf (tmpstr, TMPSTRSIZE, "Could not connect to server, %s.", | 532 | snprintf (tmpstr, TMPSTRSIZE, "Could not connect to server, %s.", |
533 | sys_errlist[errno]); | 533 | strerror(errno)); |
534 | strncpy(errstr,tmpstr,TMPSTRSIZE-2); | 534 | strncpy(errstr,tmpstr,TMPSTRSIZE-2); |
535 | errstr[TMPSTRSIZE-2] = '\0'; | 535 | errstr[TMPSTRSIZE-2] = '\0'; |
536 | strcat(errstr,"\n"); | 536 | strcat(errstr,"\n"); |
diff --git a/vchat-protocol.c b/vchat-protocol.c index af06c6a..aefe419 100755 --- a/vchat-protocol.c +++ b/vchat-protocol.c | |||
@@ -831,7 +831,7 @@ networkinput (void) | |||
831 | /* no bytes transferred? raise error message, bail out */ | 831 | /* no bytes transferred? raise error message, bail out */ |
832 | if (bytes < 0) | 832 | if (bytes < 0) |
833 | { | 833 | { |
834 | snprintf (tmpstr, TMPSTRSIZE, "Receive fails, %s.", sys_errlist[errno]); | 834 | snprintf (tmpstr, TMPSTRSIZE, "Receive fails, %s.", strerror(errno)); |
835 | strncpy(errstr,tmpstr,TMPSTRSIZE-2); | 835 | strncpy(errstr,tmpstr,TMPSTRSIZE-2); |
836 | errstr[TMPSTRSIZE-2] = '\0'; | 836 | errstr[TMPSTRSIZE-2] = '\0'; |
837 | strcat(errstr,"\n"); | 837 | strcat(errstr,"\n"); |