Strip extension when saving
This commit is contained in:
parent
1dcefb2895
commit
174794c40e
@ -5232,7 +5232,12 @@ int save_filename_ui(pixel *vid_buf)
|
||||
ed.str[0] = 0;
|
||||
|
||||
if(svf_fileopen){
|
||||
char * dotloc = NULL;
|
||||
strncpy(ed.str, svf_filename, 255);
|
||||
if(dotloc = strstr(ed.str, "."))
|
||||
{
|
||||
dotloc[0] = 0;
|
||||
}
|
||||
ed.cursor = strlen(ed.str);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user