Use file basename in -c urclock metadata under WIN32
This commit is contained in:
parent
53de22cb83
commit
c0e4dd494e
|
@ -542,8 +542,13 @@ static void set_date_filename(const PROGRAMMER *pgm, const char *fname) {
|
|||
else {
|
||||
ur.filename[0] = 0;
|
||||
if(fname && *fname) {
|
||||
#if !defined (WIN32)
|
||||
if((base=strrchr(fname, '/')))
|
||||
base++;
|
||||
#else
|
||||
if((base=strrchr(fname, '\\')))
|
||||
base++;
|
||||
#endif
|
||||
else
|
||||
base = fname;
|
||||
strncpy(ur.filename, base, sizeof ur.filename-1);
|
||||
|
|
Loading…
Reference in New Issue