summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-01-09 13:32:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-01-09 13:32:19 +0000
commitc01d151654069435c88fa92e233bbeb15ca8c294 (patch)
tree454730d6b990b7f012a82312516241052658e1ac /usr.sbin/pkg_add
parent3c9c604a64efed225f768091ed1dd80a5ab79a05 (diff)
NYTProf now warns against $& in regexps, remove that one which doesn't
serve any purpose...
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
index d0b76820272..134289e9ca3 100644
--- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
+++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Term.pm,v 1.16 2010/10/25 21:02:44 espie Exp $
+# $OpenBSD: Term.pm,v 1.17 2011/01/09 13:32:18 espie Exp $
#
# Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org>
#
@@ -193,7 +193,7 @@ sub hmove
s/\%B// and $v = 16 * ($v/10) + $v%10;
s/\%D// and $v = $v - 2*($v%16);
s/\%\./sprintf('%c', $v)/e;
- s/\%d/sprintf($&, $v)/e;
+ s/\%d/sprintf('%d', $v)/e;
s/\%2/sprintf('%2d', $v)/e;
s/\%3/sprintf('%3d', $v)/e;
s/\%\+(.)/sprintf('%c', $v+ord($1))/e;