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