aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/chksession2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 3fbd150..6ce62d6 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -30,7 +30,7 @@ sub parse_file {
open F, $f or die "Can't open $f\n";
local $/ = "";
while (<F>) {
- $n = $1 if /^NAME=(.*)/m;
+ ($n = $1) =~ s| ||g if /^NAME=(.*)/m;
$e = $1 if /^EXEC=(.*)/m;
# $d = $1 if /^DESC=(.*)/m;
# $i = $1 if /^ICON=(.*)/m;