summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--openbsd-compat/bsd-misc.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 99ed4d03d..872d94c47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
6 - djm@cvs.openbsd.org 2001/03/13 22:42:54 6 - djm@cvs.openbsd.org 2001/03/13 22:42:54
7 [sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c] 7 [sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c]
8 sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@ 8 sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@
9 - Fix strerror() in bsd-misc.c
9 10
1020010313 1120010313
11 - OpenBSD CVS Sync 12 - OpenBSD CVS Sync
@@ -4540,4 +4541,4 @@
4540 - Wrote replacements for strlcpy and mkdtemp 4541 - Wrote replacements for strlcpy and mkdtemp
4541 - Released 1.0pre1 4542 - Released 1.0pre1
4542 4543
4543$Id: ChangeLog,v 1.953 2001/03/13 23:27:09 djm Exp $ 4544$Id: ChangeLog,v 1.954 2001/03/13 23:38:20 mouring Exp $
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
29RCSID("$Id: bsd-misc.c,v 1.2 2001/02/09 01:55:36 djm Exp $"); 29RCSID("$Id: bsd-misc.c,v 1.3 2001/03/13 23:38:20 mouring Exp $");
30 30
31char *get_progname(char *argv0) 31char *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