fix-unc-binding-message-20040227
authorJeffrey Altman <jaltman@mit.edu>
Fri, 27 Feb 2004 07:35:25 +0000 (07:35 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 27 Feb 2004 07:35:25 +0000 (07:35 +0000)
Fix the UNC Binding message.

src/WINNT/client_config/getlana.cpp

index 635d2a2..96afbf3 100644 (file)
@@ -424,8 +424,8 @@ void GetUncServerName(int lanaNumber, BOOL isGateway, TCHAR* name, int type)
 
 void GetAfsName(int lanaNumber, BOOL isGateway, TCHAR* name)
 {
-
-    GetUncServerName(lanaNumber, isGateway, name, NETBIOS_NAME_FULL);
-    _stprintf(name, _T("Your UNC name to reach the root of AFS is \\\\%s\\all"), name);
+    TCHAR tmpName[MAX_PATH];
+    GetUncServerName(lanaNumber, isGateway, tmpName, NETBIOS_NAME_FULL);
+    _stprintf(name, _T("Your UNC name to reach the root of AFS is \\\\%s\\all"), tmpName);
 }