From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/screen/patches/patch-ansi_c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/screen/patches/patch-ansi_c (limited to 'package/screen/patches/patch-ansi_c') diff --git a/package/screen/patches/patch-ansi_c b/package/screen/patches/patch-ansi_c new file mode 100644 index 000000000..f6da58abe --- /dev/null +++ b/package/screen/patches/patch-ansi_c @@ -0,0 +1,32 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- screen-4.0.3.orig/ansi.c 2003-12-05 14:57:05.000000000 +0100 ++++ screen-4.0.3/ansi.c 2008-12-08 04:59:17.000000000 +0100 +@@ -1462,7 +1462,7 @@ StringEnd() + switch (curr->w_StringType) + { + case OSC: /* special xterm compatibility hack */ +- if (curr->w_string[0] == ';' || (p = index(curr->w_string, ';')) == 0) ++ if (curr->w_string[0] == ';' || (p = strchr(curr->w_string, ';')) == 0) + break; + typ = atoi(curr->w_string); + p++; +@@ -2803,15 +2803,15 @@ int ys, ye; + debug2("MFindUsedLine: %d %d\n", ye, ys); + for (y = ye; y >= ys; y--, ml--) + { +- if (bcmp((char*)ml->image, blank, p->w_width)) ++ if (memcmp((char*)ml->image, blank, p->w_width)) + break; +- if (ml->attr != null && bcmp((char*)ml->attr, null, p->w_width)) ++ if (ml->attr != null && memcmp((char*)ml->attr, null, p->w_width)) + break; + #ifdef COLOR +- if (ml->color != null && bcmp((char*)ml->color, null, p->w_width)) ++ if (ml->color != null && memcmp((char*)ml->color, null, p->w_width)) + break; + # ifdef COLORS256 +- if (ml->colorx != null && bcmp((char*)ml->colorx, null, p->w_width)) ++ if (ml->colorx != null && memcmp((char*)ml->colorx, null, p->w_width)) + break; + # endif + #endif -- cgit v1.2.3