diff --git a/src/urclock.c b/src/urclock.c index b51b8ffa..8dd2d599 100644 --- a/src/urclock.c +++ b/src/urclock.c @@ -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);