diff --git a/src/apps/installer/UnzipEngine.cpp b/src/apps/installer/UnzipEngine.cpp index c890656a43..45b614b838 100644 --- a/src/apps/installer/UnzipEngine.cpp +++ b/src/apps/installer/UnzipEngine.cpp @@ -184,7 +184,7 @@ UnzipEngine::UnzipPackage() ssize_t read = descriptionFile.Read(buffer, bufferSize); if (read > 0) { int32 length = copyrightAttr.Length(); - if (read < bufferSize) + if (read < (ssize_t)bufferSize) buffer[read] = '\0'; int32 bufferLength = strlen(buffer); // Should be "read", but maybe we have a zero in the