People: some 64 bit fixes

This commit is contained in:
Jérôme Duval
2013-05-04 15:31:10 +02:00
parent bd380b558a
commit 14b32de1d5
+1 -1
View File
@@ -217,7 +217,7 @@ PersonView::BuildGroupMenu()
if (file.InitCheck() == B_OK
&& file.GetAttrInfo(fCategoryAttribute, &info) == B_OK
&& info.size > 1) {
if (info.size > sizeof(buffer))
if (info.size > (off_t)sizeof(buffer))
info.size = sizeof(buffer);
if (file.ReadAttr(fCategoryAttribute.String(), B_STRING_TYPE,