ltrace-0.5.3-susv3-legacy.patch 700 B

1234567891011121314151617181920
  1. Use the strchr() function instead of the legacy index() function.
  2. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. ---
  4. read_config_file.c | 2 +-
  5. 1 file changed, 1 insertion(+), 1 deletion(-)
  6. Index: ltrace-0.5.3/read_config_file.c
  7. ===================================================================
  8. --- ltrace-0.5.3.orig/read_config_file.c
  9. +++ ltrace-0.5.3/read_config_file.c
  10. @@ -83,7 +83,7 @@
  11. while (tmp->name) {
  12. if (!strncmp(*str, tmp->name, strlen(tmp->name))
  13. - && index(" ,()#*;012345[", *(*str + strlen(tmp->name)))) {
  14. + && strchr(" ,()#*;012345[", *(*str + strlen(tmp->name)))) {
  15. *str += strlen(tmp->name);
  16. return lookup_prototype(tmp->pt);
  17. }