Skip to content
Snippets Groups Projects
Commit 72aea09b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the globi() change for *nix

I was stripping the path here... oops.
parent a9e3abf7
No related branches found
No related tags found
No related merge requests found
......@@ -314,11 +314,11 @@ int globi(const char *p, int flags,
{
char pattern[MAX_PATH * 2] = "";
int len = 0;
char* fname = getfname(p);
if(p != NULL) {
p = getfname(p);
while(*p != '\0' && len < MAX_PATH) {
if(IS_ALPHA(*p))
if(p >= fname && IS_ALPHA(*p))
len += sprintf(pattern + len, "[%c%c]", toupper(*p), tolower(*p));
else
pattern[len++] = *p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment