From b37cd3325cce75a054c3de59b39f1e935b70ef06 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 2 Mar 2011 17:17:07 +0100 Subject: [PATCH] abi detection: use four byte for four byte magic strings --- src/plugins/projectexplorer/abi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 50c1d815076..ea0ad8fe7d7 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -118,7 +118,7 @@ static QList<Abi> abiOf(const QByteArray &data) } else { // Windows PE // Windows can have its magic bytes everywhere... - int pePos = data.indexOf("PE\0\0"); + int pePos = data.indexOf(QByteArray("PE\0\0", 4)); if (pePos >= 0 && pePos + 72 < data.size()) { Abi::Architecture arch = Abi::UnknownArchitecture; Abi::OSFlavor flavor = Abi::UnknownFlavor; -- GitLab