diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sed/execute.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2009-06-11 Sergey Farbotka <z8sergey8z@gmail.com> (tiny change) + + * sed/execute.c (open_next_file): Fix off-by-one causing problems + under Cygwin. + 2009-05-11 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (snarf_char_class): Fix logic bug with [[[ in regular 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, "."); |