patch-help_c 477 B

123456789101112131415
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- screen-4.0.3.orig/help.c 2003-09-08 16:25:33.000000000 +0200
  3. +++ screen-4.0.3/help.c 2008-10-08 14:08:53.000000000 +0200
  4. @@ -386,9 +386,9 @@ int x, y;
  5. del = 0;
  6. bp = buf;
  7. ll = *lp++;
  8. - if (!ll || (index(cp, ' ') != NULL))
  9. + if (!ll || (strchr(cp, ' ') != NULL))
  10. {
  11. - if (index(cp, '\'') != NULL)
  12. + if (strchr(cp, '\'') != NULL)
  13. *bp++ = del = '"';
  14. else
  15. *bp++ = del = '\'';