diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-06-11 12:09:31 +0200 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2009-06-11 12:09:31 +0200 |
commit | a9841cc3f27eb3c14fa1112c09e64c17f446a17d (patch) | |
tree | 01505aacc67859fe0cbd5c654ad4f8c5fe4abe53 /sed/execute.c | |
parent | 601f290184a39dd78545b3f833c5c00f8a97a3ca (diff) | |
download | sed-a9841cc3f27eb3c14fa1112c09e64c17f446a17d.tar.gz |
fix off-by-one bug causing -i problems under Cygwin
2009-06-11 Sergey Farbotka <z8sergey8z@gmail.com> (tiny change)
* sed/execute.c (open_next_file): Fix off-by-one causing problems
under Cygwin.
Diffstat (limited to 'sed/execute.c')
-rw-r--r-- | sed/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sed/execute.c b/sed/execute.c index 3b4d5da..bb9b4ae 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -720,7 +720,7 @@ open_next_file(name, input) /* get the base name */ tmpdir = ck_strdup(input->in_file_name); if ((p = strrchr(tmpdir, '/'))) - *(p + 1) = 0; + *p = 0; else strcpy(tmpdir, "."); |