From 26c5107c8d963d602761d2c1d219cf45b2bf0c02 Mon Sep 17 00:00:00 2001 From: Julian Harnath Date: Fri, 24 Nov 2017 09:22:28 +0100 Subject: [PATCH] HaikuDepot: fix package category assignment * Processing of server data used wrong index into category list --- src/apps/haikudepot/server/PkgDataUpdateProcess.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp b/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp index 99f0ee4443..961f8a447a 100644 --- a/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp +++ b/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp @@ -148,7 +148,8 @@ PackageFillingPkgListener::Handle(DumpExportPkg* pkg) printf("unable to find the category for [%s]\n", categoryCode->String()); } else { - packageInfo->AddCategory(fCategories.ItemAtFast(i)); + packageInfo->AddCategory( + fCategories.ItemAtFast(categoryIndex)); } } @@ -285,4 +286,4 @@ const char* PkgDataUpdateProcess::LoggingName() const { return "pkg-data-update"; -} \ No newline at end of file +}