patch-ansi_c 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- screen-4.0.3.orig/ansi.c 2003-12-05 14:57:05.000000000 +0100
  3. +++ screen-4.0.3/ansi.c 2008-12-08 04:59:17.000000000 +0100
  4. @@ -1462,7 +1462,7 @@ StringEnd()
  5. switch (curr->w_StringType)
  6. {
  7. case OSC: /* special xterm compatibility hack */
  8. - if (curr->w_string[0] == ';' || (p = index(curr->w_string, ';')) == 0)
  9. + if (curr->w_string[0] == ';' || (p = strchr(curr->w_string, ';')) == 0)
  10. break;
  11. typ = atoi(curr->w_string);
  12. p++;
  13. @@ -2803,15 +2803,15 @@ int ys, ye;
  14. debug2("MFindUsedLine: %d %d\n", ye, ys);
  15. for (y = ye; y >= ys; y--, ml--)
  16. {
  17. - if (bcmp((char*)ml->image, blank, p->w_width))
  18. + if (memcmp((char*)ml->image, blank, p->w_width))
  19. break;
  20. - if (ml->attr != null && bcmp((char*)ml->attr, null, p->w_width))
  21. + if (ml->attr != null && memcmp((char*)ml->attr, null, p->w_width))
  22. break;
  23. #ifdef COLOR
  24. - if (ml->color != null && bcmp((char*)ml->color, null, p->w_width))
  25. + if (ml->color != null && memcmp((char*)ml->color, null, p->w_width))
  26. break;
  27. # ifdef COLORS256
  28. - if (ml->colorx != null && bcmp((char*)ml->colorx, null, p->w_width))
  29. + if (ml->colorx != null && memcmp((char*)ml->colorx, null, p->w_width))
  30. break;
  31. # endif
  32. #endif