diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-06-07 12:22:47 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-06-07 12:22:47 +0000 |
commit | c4f5bebe9584e31730ce26f89fe47abc6f5e3034 (patch) | |
tree | 17bb698062d4bb39e1d726c216351b5da71febc0 /usr.bin | |
parent | 6538514820308cb52b798643bd2f72d64320f563 (diff) |
prevent stringize from messing up the Name field
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pkg-config/pkg-config | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index 3228488ff7d..a747ea58866 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.52 2011/06/07 06:42:19 jasper Exp $ +# $OpenBSD: pkg-config,v 1.53 2011/06/07 12:22:46 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> @@ -503,7 +503,7 @@ sub do_list } $fname = basename($f, '.pc'); printf("%${x}s %s - %s\n", $fname, - stringize($cfg->get_property('Name', $variables)), + stringize($cfg->get_property('Name', $variables), ' '), stringize($cfg->get_property('Description', $variables), ' ')); } @@ -686,7 +686,7 @@ sub versionmatch sub mismatch { my ($p, $cfg, $op, $v) = @_; - my $name = stringize($cfg->get_property('Name')); + my $name = stringize($cfg->get_property('Name'), ' '); my $version = stringize($cfg->get_property('Version')); my $url = stringize($cfg->get_property('URL')); |