From c4f5bebe9584e31730ce26f89fe47abc6f5e3034 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Tue, 7 Jun 2011 12:22:47 +0000 Subject: prevent stringize from messing up the Name field --- usr.bin/pkg-config/pkg-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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 @@ -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')); -- cgit v1.2.3