removezip name fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5208 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-06-21 04:17:17 +00:00
parent 9d99bd7174
commit b06e7564fa
+5 -1
View File
@@ -301,7 +301,11 @@ bool addzip(const char *name, const char *mount = NULL, const char *strip = NULL
bool removezip(const char *name)
{
const char *pname = path(name, true);
string pname;
copystring(pname, name);
path(pname);
int plen = (int)strlen(pname);
if(plen < 4 || !strchr(&pname[plen-4], '.')) concatstring(pname, ".zip");
ziparchive *exists = findzip(pname);
if(!exists)
{