From 4ca1875ae9a45b6edbfeb67907f191d14f5f3fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 7 Sep 2009 19:46:40 +0000 Subject: [PATCH] Fixed warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32987 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/UnzipEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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