Fix filebackup when saving.

It was the wrong filename that was backuped when using "Save As".
Now it is the filename selected.
This commit is contained in:
Thomas Bernard
2018-03-26 10:48:24 +02:00
parent 187c7d53e3
commit c8bc04e413
4 changed files with 47 additions and 40 deletions

View File

@@ -83,6 +83,12 @@ char * Find_last_separator(const char * str);
#define PATH_SEPARATOR "/"
#endif
/// finds the rightmost '.' character in fullname. Used to find file extension. returns -1 if not found
int Position_last_dot(const char * fname);
/// finds the rightmost '.' character in fullname. Used to find file extension. returns -1 if not found
int Position_last_dot_unicode(const word * fname);
/// Size of a file, in bytes. Returns 0 in case of error.
unsigned long File_length(const char *fname);