9e8ecfb2f4
Some additional fixes from millert@ sprintf -> snprintf str{cat,cpy} -> strl{cat,cpy} http://marc.theaimsgroup.com/?l=bugtraq&m=105638591907836&w=2 ok naddy@
13 lines
424 B
Plaintext
13 lines
424 B
Plaintext
$OpenBSD: patch-gnats_pr-stat_c,v 1.1 2003/08/25 23:35:06 brad Exp $
|
|
--- gnats/pr-stat.c.orig Wed Nov 25 07:15:15 1998
|
|
+++ gnats/pr-stat.c Wed Jul 2 13:23:13 2003
|
|
@@ -148,7 +148,7 @@ do_category (c)
|
|
if ((strcmp (i->category, c) == 0)
|
|
&& (check_state_type (i->state, "closed")))
|
|
{
|
|
- sprintf (path, "%s/%s", c, i->number);
|
|
+ snprintf (path, PATH_MAX, "%s/%s", c, i->number);
|
|
do_stat (path);
|
|
}
|
|
|