remove use of MAX_NAME_LENGTH_SQL (32) and replace with MAX_NAME_LENGTH (32)

This commit is contained in:
rtldg 2021-03-19 02:39:27 +00:00
parent 757d6bf773
commit 1c4438911d

View File

@ -2509,9 +2509,9 @@ public void OnClientPutInServer(int client)
return;
}
char sName[MAX_NAME_LENGTH_SQL];
GetClientName(client, sName, MAX_NAME_LENGTH_SQL);
ReplaceString(sName, MAX_NAME_LENGTH_SQL, "#", "?"); // to avoid this: https://user-images.githubusercontent.com/3672466/28637962-0d324952-724c-11e7-8b27-15ff021f0a59.png
char sName[MAX_NAME_LENGTH];
GetClientName(client, sName, MAX_NAME_LENGTH);
ReplaceString(sName, MAX_NAME_LENGTH, "#", "?"); // to avoid this: https://user-images.githubusercontent.com/3672466/28637962-0d324952-724c-11e7-8b27-15ff021f0a59.png
int iLength = ((strlen(sName) * 2) + 1);
char[] sEscapedName = new char[iLength];