ALT Linux repos
Group :: Editors
RPM: sed
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: sed-4.1.4-cvs-20050210.patch
Download
Download
2005-02-10 Paolo Bonzini <bonzini@gnu.org>
* sed/regexp.c: Fix off-by-one error in the "invalid reference
to subexpression" message. Debian bug 294339.
Index: sed/regexp.c
===================================================================
RCS file: /cvsroot/sed/sed/sed/regexp.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sed/regexp.c 27 Jan 2005 08:04:30 -0000 1.3
+++ sed/regexp.c 10 Feb 2005 09:54:50 -0000 1.4
@@ -113,7 +113,7 @@ compile_regex_1 (new_regex, needed_sub)
{
char buf[200];
sprintf(buf, _("invalid reference \\%d on `s' command's RHS"),
- needed_sub);
+ needed_sub - 1);
bad_prog(buf);
}
}