xref: /OK3568_Linux_fs/buildroot/package/matchbox-panel/0001-index-is-legacy.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Replace the legacy index() with strchr()
2
3Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4---
5 applets/mb-applet-menu-launcher.c |    2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8Index: 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
12@@ -280,7 +280,7 @@
13 	 DBG("\tkey %s ", key);
14          if (*(++p) == '"') { p++; tc = sc; } /* skip "'s */
15 	 val = p;
16-	 while(index(tc,*p) == NULL)
17+	 while(strchr(tc,*p) == NULL)
18 	 {
19 	    if (*p == '\\' && *(p+1) == '"') p++;  /* skip \" */
20 	    p++;
21