diff --git a/src/util/updatableappimage.cpp b/src/util/updatableappimage.cpp index 5efc920..cb9faa4 100644 --- a/src/util/updatableappimage.cpp +++ b/src/util/updatableappimage.cpp @@ -74,7 +74,7 @@ namespace appimage::update { assertIfstreamGood(ifs); // validate first two bytes are A and I - if (magicByte[0] != 'A' && magicByte[1] != 'I') { + if (magicByte[0] != 'A' || magicByte[1] != 'I') { std::ostringstream oss; oss << "Invalid magic bytes: " << (int) magicByte[0] << (int) magicByte[1]; throw AppImageError(oss.str());