patch-termcap_c 458 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- screen-4.0.3.orig/termcap.c 2003-09-08 16:45:36.000000000 +0200
  3. +++ screen-4.0.3/termcap.c 2008-10-08 14:09:15.000000000 +0200
  4. @@ -940,7 +940,7 @@ int aflag;
  5. debug1("MakeTermcap decided '%s'\n", p);
  6. if (extra_outcap && *extra_outcap)
  7. {
  8. - for (cp = extra_outcap; (p = index(cp, ':')); cp = p)
  9. + for (cp = extra_outcap; (p = strchr(cp, ':')); cp = p)
  10. {
  11. ch = *++p;
  12. *p = '\0';