Small fix.

diff --git a/tools/bug_report.pl b/tools/bug_report.pl
index 6a66dd7..df93eff 100755
--- a/tools/bug_report.pl
+++ b/tools/bug_report.pl
@@ -319,7 +319,7 @@
 	chomp $debugopts;
 	if ($debugopts =~ /--debugmsg /) {
 		($crap, $debugopts) = split / /,$debugopts;
-	if ($debugopts =~ /WINEDEBUG /) {
+	if ($debugopts =~ /WINEDEBUG= /) {
 		($crap, $debugopts) = split / /,$debugopts;
 	}
 	if ($debugopts =~ /^\s*$/) {