summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sed/execute.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9855aef..506e814 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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, ".");