diff options
author | 2011-06-07 12:22:46 +0000 | |
---|---|---|
committer | 2011-06-07 12:22:46 +0000 | |
commit | d884886b841d33883f8a289c574e303779ca770c (patch) | |
tree | 19899cd52378ecc816b1206f735673e51f41f63b | |
parent | add test for spaces in the Name field which currently get mangled (diff) | |
download | wireguard-openbsd-d884886b841d33883f8a289c574e303779ca770c.tar.xz wireguard-openbsd-d884886b841d33883f8a289c574e303779ca770c.zip |
prevent stringize from messing up the Name field
-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')); |