1
0

patch-attacher_c 588 B

123456789101112131415
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- screen-4.0.3.orig/attacher.c 2003-09-08 16:24:48.000000000 +0200
  3. +++ screen-4.0.3/attacher.c 2008-10-08 14:09:31.000000000 +0200
  4. @@ -849,9 +849,9 @@ screen_builtin_lck()
  5. strncpy(fullname, ppp->pw_gecos, sizeof(fullname) - 9);
  6. fullname[sizeof(fullname) - 9] = 0;
  7. - if ((cp1 = index(fullname, ',')) != NULL)
  8. + if ((cp1 = strchr(fullname, ',')) != NULL)
  9. *cp1 = '\0';
  10. - if ((cp1 = index(fullname, '&')) != NULL)
  11. + if ((cp1 = strchr(fullname, '&')) != NULL)
  12. {
  13. strncpy(cp1, ppp->pw_name, 8);
  14. cp1[8] = 0;