patch-gnats_getclose_c 486 B

12345678910111213
  1. $OpenBSD: patch-gnats_getclose_c,v 1.1 2003/08/25 23:35:06 brad Exp $
  2. --- gnats/getclose.c.orig Wed Nov 25 07:14:57 1998
  3. +++ gnats/getclose.c Wed Jul 2 13:23:13 2003
  4. @@ -136,7 +136,7 @@ do_prlist ()
  5. if (check_state_type (i->state, "closed")
  6. && regcmp ("no", i->confidential) == 0)
  7. {
  8. - sprintf (path, "%s/%s/%s", gnats_root, i->category, i->number);
  9. + snprintf (path, PATH_MAX, "%s/%s/%s", gnats_root, i->category, i->number);
  10. do_stat (path, path + len + 1);
  11. }