diff options
author | erdgeist <> | 2008-10-01 19:02:50 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-01 19:02:50 +0000 |
commit | 9dc2d7f8fef2652b8d8f7ee49a5f63c0d0e1e5a5 (patch) | |
tree | 3e8550142d63acf3c5d32e9ad7c0f1e6bf002d66 /vchat-protocol.c | |
parent | d27adde65b922f917a257a6e6e88a393e73ff128 (diff) |
avoid deprecated error strings, part 3
Diffstat (limited to 'vchat-protocol.c')
-rwxr-xr-x | vchat-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |