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:
6
src/io.h
6
src/io.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user