Skip to content
Snippets Groups Projects
Commit 4e9fb74c authored by rswindell's avatar rswindell
Browse files

Utilized new getfname function.

parent 0a97e95f
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,7 @@
#include <stdlib.h> /* rand */
#include <errno.h> /* ENOENT definitions */
#include "gen_defs.h" /* BOOL */
#include "sbbswrap.h" /* verify prototypes */
#include "sbbs.h" /* getfname */
#ifdef _WIN32
#define stat(f,s) _stat(f,s)
......@@ -104,10 +103,7 @@ int DLLCALL glob(const char *pattern, int flags, void* unused, glob_t* glob)
/* build the full pathname */
strcpy(path,pattern);
p=strrchr(path,'\\');
if(!p) p=strrchr(path,'/');
if(p) p++;
else p=path;
p=getfname(path);
*p=0;
strcat(path,ff.name);
......
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