mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
20
package/matchbox-panel/0001-index-is-legacy.patch
Normal file
20
package/matchbox-panel/0001-index-is-legacy.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Replace the legacy index() with strchr()
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
applets/mb-applet-menu-launcher.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
|
||||
===================================================================
|
||||
--- matchbox-panel-0.9.3.orig/applets/mb-applet-menu-launcher.c
|
||||
+++ matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
|
||||
@@ -280,7 +280,7 @@
|
||||
DBG("\tkey %s ", key);
|
||||
if (*(++p) == '"') { p++; tc = sc; } /* skip "'s */
|
||||
val = p;
|
||||
- while(index(tc,*p) == NULL)
|
||||
+ while(strchr(tc,*p) == NULL)
|
||||
{
|
||||
if (*p == '\\' && *(p+1) == '"') p++; /* skip \" */
|
||||
p++;
|
||||
Reference in New Issue
Block a user