Commit c4fc80ab authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix the globi() change for *nix

I was stripping the path here... oops.
parent b5cce30f
Pipeline #2947 passed with stage
in 9 minutes and 28 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment