freebsd-ports/databases/gnats/files/patch-gnats::internal.c
Ceri Davies 4572d687ae Correct some potential buffer overflows [1].
Take maintainership [2].

[1]
PR:		ports/56006
Submitted by:	eik
[2]
Approved by:	des
2004-11-15 18:23:39 +00:00

11 lines
327 B
C

--- gnats/internal.c.orig Wed Mar 3 09:18:53 1999
+++ gnats/internal.c Sat Jun 14 14:09:45 2003
@@ -238,7 +238,7 @@
struct stat buf;
int count;
- sprintf (path, "%s/gnats-adm/gnats.lock", gnats_root);
+ snprintf (path, PATH_MAX-1, "%s/gnats-adm/gnats.lock", gnats_root);
#define MAXWAIT 10
#define GRANULARITY 1