summaryrefslogtreecommitdiff
path: root/package/screen/patches/patch-fileio_c
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/screen/patches/patch-fileio_c
Initial import
Diffstat (limited to 'package/screen/patches/patch-fileio_c')
-rw-r--r--package/screen/patches/patch-fileio_c39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/screen/patches/patch-fileio_c b/package/screen/patches/patch-fileio_c
new file mode 100644
index 000000000..c86914c10
--- /dev/null
+++ b/package/screen/patches/patch-fileio_c
@@ -0,0 +1,39 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- screen-4.0.3.orig/fileio.c 2003-09-08 16:25:28.000000000 +0200
++++ screen-4.0.3/fileio.c 2008-10-08 14:07:52.000000000 +0200
+@@ -96,7 +96,7 @@ char *rcfile;
+
+ if (rcfile)
+ {
+- char *rcend = rindex(rc_name, '/');
++ char *rcend = strrchr(rc_name, '/');
+ if (*rcfile != '/' && rcend && (rcend - rc_name) + strlen(rcfile) + 2 < sizeof(buf))
+ {
+ strncpy(buf, rc_name, rcend - rc_name + 1);
+@@ -169,7 +169,7 @@ char *rcfilename;
+ }
+ while (fgets(buf, sizeof buf, fp) != NULL)
+ {
+- if ((p = rindex(buf, '\n')) != NULL)
++ if ((p = strrchr(buf, '\n')) != NULL)
+ *p = '\0';
+ if ((argc = Parse(buf, sizeof buf, args, argl)) == 0)
+ continue;
+@@ -216,7 +216,7 @@ char *rcfilename;
+ }
+ for (p = args[1]; p && *p; p = cp)
+ {
+- if ((cp = index(p, '|')) != 0)
++ if ((cp = strchr(p, '|')) != 0)
+ *cp++ = '\0';
+ len = strlen(p);
+ if (p[len - 1] == '*')
+@@ -501,7 +501,7 @@ int dump;
+ }
+ break;
+ case DUMP_TERMCAP:
+- if ((p = index(MakeTermcap(fore->w_aflag), '=')) != NULL)
++ if ((p = strchr(MakeTermcap(fore->w_aflag), '=')) != NULL)
+ {
+ fputs(++p, f);
+ putc('\n', f);