From 94c5d9d6ad90bfc1b6943cce913377ee6fbb0320 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 27 Feb 2004 07:35:25 +0000 Subject: [PATCH] fix-unc-binding-message-20040227 Fix the UNC Binding message. --- src/WINNT/client_config/getlana.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WINNT/client_config/getlana.cpp b/src/WINNT/client_config/getlana.cpp index 635d2a2f5..96afbf329 100644 --- a/src/WINNT/client_config/getlana.cpp +++ b/src/WINNT/client_config/getlana.cpp @@ -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); } -- 2.39.5