From c1b8cff79600f31ec3e2b9e39aada1ba168effa6 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Thu, 9 Nov 2000 23:39:32 +0000 Subject: [PATCH] Use basename in generated comment. committer: mfx 973813172 +0000 --- src/stub/scripts/bin2h.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/stub/scripts/bin2h.pl b/src/stub/scripts/bin2h.pl index 8ba135ae..4c77ee8e 100644 --- a/src/stub/scripts/bin2h.pl +++ b/src/stub/scripts/bin2h.pl @@ -50,12 +50,14 @@ $n = length($data); # print select(OUTFILE); -$o = $ofile; -$o =~ s/.*[\/\\]//; +$if = $ifile; +$if =~ s/.*[\/\\]//; +$of = $ofile; +$of =~ s/.*[\/\\]//; if ($opt_q ne "-q") { print <<"EOF"; -/* $o -- created from $ifile, $n bytes +/* $of -- created from $if, $n bytes This file is part of the UPX executable compressor.