diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c index 40cfe141..a82100ae 100644 --- a/code/game/ai_dmq3.c +++ b/code/game/ai_dmq3.c @@ -1488,7 +1488,8 @@ char *EasyClientName(int client, char *buf, int size) { char *str1, *str2, *ptr, c; char name[128]; - strcpy(name, ClientName(client, name, sizeof(name))); + ClientName(client, name, sizeof(name)); + for (i = 0; name[i]; i++) name[i] &= 127; //remove all spaces for (ptr = strstr(name, " "); ptr; ptr = strstr(name, " ")) {