From 0b16a5fcbb8607037bf9f4265a39213f24b87f2c Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 27 Feb 2007 22:01:09 +0000 Subject: [PATCH] Fix bug 1089. This allows the documented API for tcldot to remain as is. --- lib/gvc/gvplugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 6ccac9292..eb9e78036 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -310,8 +310,8 @@ const char *gvplugin_list(GVC_t * gvc, api_t api, char *str) pprev = NULL; while (*pnext) { /* list only the matching type, and only once*/ - if ((strcmp(s, (*pnext)->typestr) == 0) - && ! (pprev && strcmp((*pnext)->packagename, (*pprev)->packagename) == 0)) { + if ((strcasecmp(s, (*pnext)->typestr) == 0) + && ! (pprev && strcasecmp((*pnext)->packagename, (*pprev)->packagename) == 0)) { /* list each member of the matching type as "type:path" */ append_buf(' ', (*pnext)->typestr, new); buf = append_buf(':', (*pnext)->packagename, FALSE); @@ -328,7 +328,7 @@ const char *gvplugin_list(GVC_t * gvc, api_t api, char *str) while (*pnext) { /* list only one instance of type */ if (!typestr_last - || strcmp(typestr_last, (*pnext)->typestr) != 0) { + || strcasecmp(typestr_last, (*pnext)->typestr) != 0) { /* list it as "type" i.e. w/o ":path" */ buf = append_buf(' ', (*pnext)->typestr, new); new = FALSE; -- 2.40.0