summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-02-26 14:58:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-02-26 14:58:37 +0000
commit696db51747a21e62252e3975b5b00b2d4e2ff8fb (patch)
tree98c88cf756ecc3afed52a43aff62f9cafe076728 /usr.sbin
parent6a324e5c86a56ea590dde3dbc406d7b18a3be872 (diff)
actually have safe do something, stupid typo
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/State.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm
index c553abd23e3..18953523cb7 100644
--- a/usr.sbin/pkg_add/OpenBSD/State.pm
+++ b/usr.sbin/pkg_add/OpenBSD/State.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: State.pm,v 1.49 2018/02/26 13:04:30 espie Exp $
+# $OpenBSD: State.pm,v 1.50 2018/02/26 14:58:36 espie Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
@@ -179,7 +179,7 @@ sub safe
my ($self, $string) = @_;
my @l = split(/\n/, $string);
s/[[:^print:]]/?/g for @l;
- return join("\n", $string);
+ return join("\n", @l);
}
sub f