From 201a27bd864bf94e8692c8c2c0fee3b0eedb511c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 23 Aug 2005 12:41:23 +0000 Subject: be safer --- perl-install/Xconfig/resolution_and_depth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/Xconfig') diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm index 2faebe5b6..b8a10695d 100644 --- a/perl-install/Xconfig/resolution_and_depth.pm +++ b/perl-install/Xconfig/resolution_and_depth.pm @@ -237,7 +237,7 @@ sub set_default_background { sort { $a->[1] <=> $b->[1] || $b->[2] <=> $a->[2] || $a->[3] <=> $b->[3]; } map { - if (my ($X, $Y) = /^$theme{THEME}-(\d+)x(\d+).png$/) { + if (my ($X, $Y) = /^\Q$theme{THEME}\E-(\d+)x(\d+).png$/) { [ $_, int(abs($ratio - $X / $Y) * 100), #- we want the nearest ratio (precision .01) -- cgit v1.2.1