patch-perdition_db_daemon_client_c 482 B

12345678910111213
  1. $OpenBSD: patch-perdition_db_daemon_client_c,v 1.1.1.1 2006/11/16 23:26:00 msf Exp $
  2. --- perdition/db/daemon/client.c.orig Mon Nov 13 13:31:14 2006
  3. +++ perdition/db/daemon/client.c Mon Nov 13 13:47:15 2006
  4. @@ -105,7 +105,7 @@ main(int argc, char **argv)
  5. perdition_un_init(&sock);
  6. - memcpy(sock.dir, DIR_TEMPLATE, PERDITION_UN_STR_LEN-1);
  7. + strlcpy(sock.dir, DIR_TEMPLATE, sizeof(sock.dir));
  8. if(!mkdtemp(sock.dir)) {
  9. VANESSA_LOGGER_DEBUG_ERRNO("mkdtemp");
  10. return (-1);