]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/dirname.c
Add server-side GSSAPIDelegateCredentials option, enabled for use with
[gssapi-openssh.git] / openssh / openbsd-compat / dirname.c
index 391b2dd81cfce10041ba30bcdb539ca294cb9a4b..a76a1dc13f7df771c1db00acc5b4e640a361baff 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dirname.c,v 1.6 2001/06/28 04:27:19 pjanzen Exp $     */
+/*     $OpenBSD: dirname.c,v 1.5 2001/06/27 00:58:54 lebel Exp $       */
 
 /*
  * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -31,7 +31,7 @@
 #ifndef HAVE_DIRNAME
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: dirname.c,v 1.6 2001/06/28 04:27:19 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: dirname.c,v 1.5 2001/06/27 00:58:54 lebel Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <errno.h>
@@ -70,7 +70,7 @@ dirname(path)
                } while (endp > path && *endp == '/');
        }
 
-       if (endp - path + 2 > sizeof(bname)) {
+       if (endp - path + 1 > sizeof(bname)) {
                errno = ENAMETOOLONG;
                return(NULL);
        }
This page took 0.05285 seconds and 4 git commands to generate.