]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
make COM_StringLengthNoColors and COM_StringDecolorize get an additional length param...
[xonotic/darkplaces.git] / host_cmd.c
index de921fdf8fe306503af1724db6970c00470a6393..ad1046c0b71243d9d9c9d59b800991a4a3da637a 100644 (file)
@@ -773,7 +773,7 @@ void Host_Name_f (void)
        // point the string back at updateclient->name to keep it safe
        strlcpy (host_client->name, newName, sizeof (host_client->name));
 
-       COM_StringLengthNoColors(host_client->name, &valid_colors);
+       COM_StringLengthNoColors(host_client->name, 0, &valid_colors);
        if(!valid_colors) // NOTE: this also proves the string is not empty, as "" is a valid colored string
        {
                size_t l;