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-attacher_c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/screen/patches/patch-attacher_c (limited to 'package/screen/patches/patch-attacher_c') diff --git a/package/screen/patches/patch-attacher_c b/package/screen/patches/patch-attacher_c new file mode 100644 index 000000000..34e9a0deb --- /dev/null +++ b/package/screen/patches/patch-attacher_c @@ -0,0 +1,15 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- screen-4.0.3.orig/attacher.c 2003-09-08 16:24:48.000000000 +0200 ++++ screen-4.0.3/attacher.c 2008-10-08 14:09:31.000000000 +0200 +@@ -849,9 +849,9 @@ screen_builtin_lck() + strncpy(fullname, ppp->pw_gecos, sizeof(fullname) - 9); + fullname[sizeof(fullname) - 9] = 0; + +- if ((cp1 = index(fullname, ',')) != NULL) ++ if ((cp1 = strchr(fullname, ',')) != NULL) + *cp1 = '\0'; +- if ((cp1 = index(fullname, '&')) != NULL) ++ if ((cp1 = strchr(fullname, '&')) != NULL) + { + strncpy(cp1, ppp->pw_name, 8); + cp1[8] = 0; -- cgit v1.2.3