diff options
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index c0d2d65ee..6f92e064f 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "xmalloc.h" | 26 | #include "xmalloc.h" |
27 | #include "ssh.h" | 27 | #include "ssh.h" |
28 | 28 | ||
29 | RCSID("$Id: bsd-misc.c,v 1.2 2001/02/09 01:55:36 djm Exp $"); | 29 | RCSID("$Id: bsd-misc.c,v 1.3 2001/03/13 23:38:20 mouring Exp $"); |
30 | 30 | ||
31 | char *get_progname(char *argv0) | 31 | char *get_progname(char *argv0) |
32 | { | 32 | { |
@@ -76,10 +76,10 @@ const char *strerror(int e) | |||
76 | extern int sys_nerr; | 76 | extern int sys_nerr; |
77 | extern char *sys_errlist[]; | 77 | extern char *sys_errlist[]; |
78 | 78 | ||
79 | if ((e >= 0) || (e < sys_nerr)) | 79 | if ((e >= 0) && (e < sys_nerr)) |
80 | return("unlisted error"); | ||
81 | else | ||
82 | return(sys_errlist[e]); | 80 | return(sys_errlist[e]); |
81 | else | ||
82 | return("unlisted error"); | ||
83 | } | 83 | } |
84 | #endif | 84 | #endif |
85 | 85 | ||