Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32987 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
43eaa79d33
commit
4ca1875ae9
@ -184,7 +184,7 @@ UnzipEngine::UnzipPackage()
|
|||||||
ssize_t read = descriptionFile.Read(buffer, bufferSize);
|
ssize_t read = descriptionFile.Read(buffer, bufferSize);
|
||||||
if (read > 0) {
|
if (read > 0) {
|
||||||
int32 length = copyrightAttr.Length();
|
int32 length = copyrightAttr.Length();
|
||||||
if (read < bufferSize)
|
if (read < (ssize_t)bufferSize)
|
||||||
buffer[read] = '\0';
|
buffer[read] = '\0';
|
||||||
int32 bufferLength = strlen(buffer);
|
int32 bufferLength = strlen(buffer);
|
||||||
// Should be "read", but maybe we have a zero in the
|
// Should be "read", but maybe we have a zero in the
|
||||||
|
Loading…
Reference in New Issue
Block a user