mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
STABLE14-windows-backconnectionhostnames-20060902
compute the final buffer size correctly. don't write too much into the registry when adding additional names.
This commit is contained in:
parent
4be0881b04
commit
92cc14bcb3
@ -310,7 +310,7 @@ configureBackConnectionHostNames(void)
|
||||
*pName = '\0'; /* add a second nul terminator */
|
||||
|
||||
dwType = REG_MULTI_SZ;
|
||||
dwSize += pName - pHostNames + 1;
|
||||
dwSize = pName - pHostNames + 1;
|
||||
RegSetValueEx( hkMSV10, "BackConnectionHostNames", 0, dwType, pHostNames, dwSize);
|
||||
|
||||
if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user