From 04abf5f1525e73c9b1dbdc4e05284bb2c9d132de Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 15 May 2014 18:51:01 +0000 Subject: [PATCH] make a note that FNBUFF cannot overflow as long as LNBUFF is smaller.. MFC after: 2 weeks --- usr.sbin/pmcannotate/pmcannotate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c index df547e37735..b22d0dc8278 100644 --- a/usr.sbin/pmcannotate/pmcannotate.c +++ b/usr.sbin/pmcannotate/pmcannotate.c @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include +/* NB: Make sure FNBUFF is as large as LNBUFF, otherwise it could overflow */ #define FNBUFF 512 #define LNBUFF 512