Skip to content

Commit

Permalink
Fix get_basename on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois CARON committed Nov 23, 2024
1 parent 4e07845 commit b87aa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yabause/src/ctrl/src/stv.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ char *get_basename(char* path) {
char *ssc;
int l = 0;
ssc = strstr(path, "\\");
do{
while(ssc){
l = strlen(ssc) + 1;
path = &path[strlen(path)-l+2];
ssc = strstr(path, "\\");
}while(ssc);
}
return path;
}
#else
Expand Down

0 comments on commit b87aa12

Please sign in to comment.