]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-afsd-init-20041202
authorJeffrey Altman <jaltman@mit.edu>
Tue, 7 Dec 2004 06:13:26 +0000 (06:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Dec 2004 06:13:26 +0000 (06:13 +0000)
Fix a memory overwrite condition caused when the BackConnectionHostNames
key does not exist

(cherry picked from commit a8d0ca81a8d79b65e265ebf67ae6b9ddc868cac6)

src/WINNT/afsd/afsd_init.c

index 2d3520bda94ab6e1beb41f46ace38f50afd78f1d..9509f550cef57167794060ba2f0fbd07d7a4b48f 100644 (file)
@@ -170,7 +170,7 @@ void
 afsi_log(char *pattern, ...)
 {
     char s[256], t[100], d[100], u[512];
-    int zilch;
+    DWORD zilch;
     va_list ap;
     va_start(ap, pattern);
 
@@ -280,7 +280,7 @@ configureBackConnectionHostNames(void)
                 dwSize = 1;
             }
             pName = pHostNames;
-            StringCbCopyA(pName, size, strlen(cm_NetbiosName));
+            StringCbCopyA(pName, size, cm_NetbiosName);
             pName += size - 1;
             *pName = '\0';  /* add a second nul terminator */