Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37531569
en ru br
ALT Linux repos
S:4.9.0.32.5420-alt1
5.0: 4.1.5-alt2
4.1: 4.1.5-alt2
4.0: 4.1.5-alt2
3.0: 4.1.4-alt2

Group :: Editors
RPM: sed

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: sed-4.1.4-cvs-20050210.patch
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);
     }
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin