patch-src_serdisp_tools_c 1.3 KB

123456789101112131415161718192021222324252627282930
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- serdisplib-1.97.8.orig/src/serdisp_tools.c 2008-07-17 01:44:52.000000000 +0200
  3. +++ serdisplib-1.97.8/src/serdisp_tools.c 2009-05-31 16:26:39.000000000 +0200
  4. @@ -688,7 +688,7 @@ int sdtools_isinelemlist(const char* ele
  5. if (strlen(lefttrimmedelemlist) == 0) return -1;
  6. - indexpos = index(lefttrimmedelemlist, ',');
  7. + indexpos = strchr(lefttrimmedelemlist, ',');
  8. /* this should never occur but to be sure: catch it and return 0 in such a case (invalid elemlist!) */
  9. if (indexpos == lefttrimmedelemlist)
  10. @@ -762,7 +762,7 @@ char* sdtools_nextpattern(const char* st
  11. char* idxpos;
  12. if (*len >= 0) { /* *len < 0: return first parameter, else: not first parameter */
  13. - idxpos = index(strstart, delim);
  14. + idxpos = strchr(strstart, delim);
  15. if ( !idxpos || (((long)idxpos) >= (((long)strstart) + *border)) ) {
  16. /* no more delim or found delim out of view => no more param */
  17. *len = -1; *border = 0;
  18. @@ -783,7 +783,7 @@ char* sdtools_nextpattern(const char* st
  19. *border -= n;
  20. *len -= n;
  21. - idxpos = index(strstart, delim);
  22. + idxpos = strchr(strstart, delim);
  23. if ( idxpos && ((long)idxpos < ((long)strstart + (*border))) ) {
  24. *len = serdisp_ptrstrlen(idxpos, strstart);