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
1 changed files with 1 additions and 1 deletions

View File

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