diff options
| author | Richard M. Stallman | 1996-06-09 19:12:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-09 19:12:26 +0000 |
| commit | f55aa55a81195ab36c92e3e80fd344adf6b5d6c9 (patch) | |
| tree | b3f7e3d87f337445bb8303c8e033253018a2dccc /lib-src | |
| parent | 2837b9df2e9d720225f2d38235bbded9a0922f3b (diff) | |
| download | emacs-f55aa55a81195ab36c92e3e80fd344adf6b5d6c9.tar.gz emacs-f55aa55a81195ab36c92e3e80fd344adf6b5d6c9.zip | |
(main): Copy cwd when appending slash.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 3445d2de8a0..34948781689 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -856,8 +856,8 @@ main (argc, argv) | |||
| 856 | if (tagfile == NULL) | 856 | if (tagfile == NULL) |
| 857 | tagfile = CTAGS ? "tags" : "TAGS"; | 857 | tagfile = CTAGS ? "tags" : "TAGS"; |
| 858 | cwd = etags_getcwd (); /* the current working directory */ | 858 | cwd = etags_getcwd (); /* the current working directory */ |
| 859 | if (cwd[strlen(cwd)-1] != '/') | 859 | if (cwd[strlen (cwd) - 1] != '/') |
| 860 | strcat (cwd, "/"); | 860 | cwd = concat (cwd, "/", ""); |
| 861 | if (streq (tagfile, "-")) | 861 | if (streq (tagfile, "-")) |
| 862 | tagfiledir = cwd; | 862 | tagfiledir = cwd; |
| 863 | else | 863 | else |