check that newname isn't "" rather than that it isn't null (never will be)

This commit is contained in:
Bill Currie 2007-03-21 11:35:45 +00:00 committed by Jeff Teunissen
parent aae9157f43
commit b8712f2211

View file

@ -513,7 +513,7 @@ CL_ParseDownload (void)
const char *url = MSG_ReadString (net_message);
const char *newname = MSG_ReadString (net_message);
if (newname) {
if (*newname) {
if (strncmp (newname, cls.downloadname->str,
strlen (cls.downloadname->str))
|| strstr (newname + strlen (cls.downloadname->str), "/")) {