Strip extension when saving

This commit is contained in:
Simon Robertshaw 2011-06-25 17:05:57 +01:00
parent 1dcefb2895
commit 174794c40e

View File

@ -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);
}