remote nc: fix memory copy
[nedit-bw.git] / backup-tilde-at-end.patch
blob1785accc3abe139b7020754a0942b47ff543a668
1 ---
3 source/file.c | 6 +++---
4 1 file changed, 3 insertions(+), 3 deletions(-)
6 diff --quilt old/source/file.c new/source/file.c
7 --- old/source/file.c
8 +++ new/source/file.c
9 @@ -1487,11 +1487,11 @@ static void backupFileName(WindowInfo *w
10 #else
11 if (window->path[0])
13 - sprintf(name, "%s~%s", window->path, window->filename);
14 + sprintf(name, "%s%s~", window->path, window->filename);
15 } else
17 - strcpy(bckname, "~");
18 - strncat(bckname, window->filename, MAXPATHLEN - 1);
19 + strcat(bckname, window->filename);
20 + strncpy(bckname, "~", MAXPATHLEN - strlen(window->filename));
21 PrependHome(bckname, name, len);
23 #endif /*VMS*/