blob: c897a2ea5cdbce5be3b2dfdc3a24f246f5a19a57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- gnats/index.c.orig Thu Mar 18 08:45:38 1999
+++ gnats/index.c Sat Jun 14 13:22:21 2003
@@ -399,7 +399,7 @@
if (! index_filename)
{
index_filename = (char *) xmalloc (PATH_MAX);
- sprintf (index_filename, "%s/gnats-adm/%s", gnats_root, INDEX);
+ snprintf (index_filename, PATH_MAX-1, "%s/gnats-adm/%s", gnats_root, INDEX);
}
fp = fopen (index_filename, "r");
|