0001-index-is-legacy.patch 720 B

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