1 Replace the legacy index() with strchr()
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 applets/mb-applet-menu-launcher.c | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
8 Index: matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
9 ===================================================================
10 --- matchbox-panel-0.9.3.orig/applets/mb-applet-menu-launcher.c
11 +++ matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
13 DBG("\tkey %s ", key);
14 if (*(++p) == '"') { p++; tc = sc; } /* skip "'s */
16 - while(index(tc,*p) == NULL)
17 + while(strchr(tc,*p) == NULL)
19 if (*p == '\\' && *(p+1) == '"') p++; /* skip \" */