fix switch statement
[nedit-bw.git] / backup-tilde-at-end.patch
blob6a39c886d87c4df84f3d2a209daedf8f2a4a6c45
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 @@ -1453,11 +1453,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*/