From: Jeffrey Altman Date: Fri, 27 Feb 2004 07:35:25 +0000 (+0000) Subject: fix-unc-binding-message-20040227 X-Git-Tag: openafs-devel-1_3_60~90 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=94c5d9d6ad90bfc1b6943cce913377ee6fbb0320;p=packages%2Fo%2Fopenafs.git fix-unc-binding-message-20040227 Fix the UNC Binding message. --- 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); }