git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8009
d7cf8633-e32d-0410-b094-
e92efae38249
if(slash)
{
strlcpy(t, s, min(sizeof(t), (unsigned int)(slash - s + 2))); // + 2, because I want to include the slash
if(slash)
{
strlcpy(t, s, min(sizeof(t), (unsigned int)(slash - s + 2))); // + 2, because I want to include the slash
- strlcat(t, "/*", sizeof(t));
+ strlcat(t, "*", sizeof(t));
search = FS_Search(t, true, true);
}
else
search = FS_Search(t, true, true);
}
else
}
stringlistfreecontents(&resultbuf);
stringlistfreecontents(&dirbuf);
}
stringlistfreecontents(&resultbuf);
stringlistfreecontents(&dirbuf);
+
+ return; // bail out, when we complete for a command that wants a file name