Make browse case-insensitive, to match query processing

This commit is contained in:
Ron Pedde 2004-12-17 21:26:36 +00:00
parent 4bc637a1a6
commit 026b528136
1 changed files with 2 additions and 2 deletions

View File

@ -1094,10 +1094,10 @@ static void add_browse_item(browse_item** root, char* name)
{
browse_item* item;
while(0 != (item = *root) && strcmp(item->name, name) < 0)
while(0 != (item = *root) && strcasecmp(item->name, name) < 0)
root = &item->next;
if(item && strcmp(item->name, name) == 0)
if(item && strcasecmp(item->name, name) == 0)
return;
item = calloc(1, sizeof(browse_item));