925c326e710accdfa14553ba7179b533832becfc
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / matchbox / matchbox-panel / 0001-index-is-legacy.patch
1 Replace the legacy index() with strchr()
2
3 Signed-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
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
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++;