diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 47339fd..5833325 100644 --- a/src/search.c +++ b/src/search.c @@ -122,8 +122,8 @@ static void print_result_pkg(struct search_ctx *ctx, struct apk_package *pkg) if (ctx->search_description) { foreach_array_item(pmatch, ctx->filter) { - if (strstr(*pmatch, pkg->description) != NULL || - strstr(*pmatch, pkg->name->name) != NULL) + if (strstr(pkg->description, *pmatch) != NULL || + strstr(pkg->name->name, *pmatch) != NULL) goto match; } return; |