aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--teccmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/teccmd.c b/teccmd.c
index 81a909c..58d8628 100644
--- a/teccmd.c
+++ b/teccmd.c
@@ -1104,7 +1104,7 @@ int status;
#ifdef HAVE_LONG_FILE_NAMES
(void) strcpy(tmp_filename,base_filename);
(void) strcat(tmp_filename,".OLD");
- status = cmd_writebak(fi,filename,path_name,tmp_filename,O_EXCL);
+ status = cmd_writebak(fi,path_name,filename,tmp_filename,O_EXCL);
#else
(void) strcpy(tmp_filename,path_name);
(void) strcat(tmp_filename,".TECOLD");
@@ -1125,7 +1125,7 @@ int status;
#ifdef HAVE_LONG_FILE_NAMES
(void) strcpy(tmp_filename,base_filename);
(void) strcat(tmp_filename,".BAK");
- status = cmd_writebak(fi,filename,path_name,tmp_filename,0);
+ status = cmd_writebak(fi,path_name,filename,tmp_filename,0);
#else
(void) strcpy(tmp_filename,path_name);
(void) strcat(tmp_filename,".TECBAK");