From b24034fc528fa70caea4db17c063c8f222ec9f38 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 19 Oct 2017 13:34:16 +1000 Subject: [PATCH] fix a typo --- src/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index 42a327f..15968fb 100644 --- a/src/files.c +++ b/src/files.c @@ -1109,9 +1109,9 @@ void file_search() { strncat(sqlbuffer, ")", 1024); } if (stype == 1) { - snprintf(sqlbuffer, 1024, "select filename, description, size, dlcount, uploaddate from files where approved=1 AND description (filename LIKE ?"); + snprintf(sqlbuffer, 1024, "select filename, description, size, dlcount, uploaddate from files where approved=1 AND (description LIKE ?"); for (i=1; i < searchterm_count; i++) { - strncat(sqlbuffer, " OR filename LIKE ?", 1024); + strncat(sqlbuffer, " OR description LIKE ?", 1024); } strncat(sqlbuffer, ")", 1024); }