]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-name-entries-20080218
authorDerrick Brashear <shadow@dementia.org>
Tue, 19 Feb 2008 04:15:03 +0000 (04:15 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Feb 2008 04:15:03 +0000 (04:15 +0000)
LICENSE IPL10

restore the original behavior.  Fixes smb_ReceiveTran2SearchDir().

(cherry picked from commit c2de3a1623441f93b119dbdbd772bfa81973b230)

src/WINNT/afsd/cm_dir.c

index bf41ab4b8dd4e12591512a36ba8d3435ab9df21c..0933b65b4cc825b4f09886b205bc3c3218f74051 100644 (file)
@@ -127,9 +127,9 @@ cm_NameEntries(char *namep, long *lenp)
 {
     long i;
         
-    i = (long)strlen(namep) + 1;
+    i = (long)strlen(namep);
     if (lenp) *lenp = i;
-    return 1 + ((i+15) >> 5);
+    return 1 + ((i+16) >> 5);
 }
 
 /* Create an entry in a file.  Dir is a file representation, while