patch-utmp_c 599 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- screen-4.0.3.orig/utmp.c 2003-09-08 16:27:17.000000000 +0200
  3. +++ screen-4.0.3/utmp.c 2008-12-08 04:59:38.000000000 +0100
  4. @@ -422,7 +422,7 @@ struct win *wi;
  5. debug2("SetUtmp %d will get slot %d...\n", wi->w_number, (int)slot);
  6. bzero((char *)&u, sizeof(u));
  7. - if ((saved_ut = bcmp((char *) &wi->w_savut, (char *)&u, sizeof(u))))
  8. + if ((saved_ut = memcmp((char *) &wi->w_savut, (char *)&u, sizeof(u))))
  9. /* restore original, of which we will adopt all fields but ut_host */
  10. bcopy((char *)&wi->w_savut, (char *) &u, sizeof(u));