summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcannotate
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2014-08-19 06:50:54 +0000
committersjg <sjg@FreeBSD.org>2014-08-19 06:50:54 +0000
commitd7cd1d425cc1ea9451fa235e3af9b6625c3e0de2 (patch)
treeb04f4bd7cd887f50e7d98af35f46b9834ff86c80 /usr.sbin/pmcannotate
parent3c8e37b1d04827f33c0c9a7594bd1b1ef7cdb3d3 (diff)
parent4fbde208c6460d576f64d6dc3cdc6cab085a4283 (diff)
downloadFreeBSD-src-d7cd1d425cc1ea9451fa235e3af9b6625c3e0de2.zip
FreeBSD-src-d7cd1d425cc1ea9451fa235e3af9b6625c3e0de2.tar.gz
Merge head from 7/28
Diffstat (limited to 'usr.sbin/pmcannotate')
-rw-r--r--usr.sbin/pmcannotate/pmcannotate.82
-rw-r--r--usr.sbin/pmcannotate/pmcannotate.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pmcannotate/pmcannotate.8 b/usr.sbin/pmcannotate/pmcannotate.8
index 8f791c1..08967d9 100644
--- a/usr.sbin/pmcannotate/pmcannotate.8
+++ b/usr.sbin/pmcannotate/pmcannotate.8
@@ -106,4 +106,4 @@ of interest.
.Xr objdump 1 ,
.Xr pmcstat 8
.Sh AUTHORS
-.An Attilio Rao Aq attilio@FreeBSD.org
+.An Attilio Rao Aq Mt attilio@FreeBSD.org
diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c
index 374290f..b22d0dc 100644
--- a/usr.sbin/pmcannotate/pmcannotate.c
+++ b/usr.sbin/pmcannotate/pmcannotate.c
@@ -41,8 +41,9 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
-#define FNBUFF 161
-#define LNBUFF 161
+/* NB: Make sure FNBUFF is as large as LNBUFF, otherwise it could overflow */
+#define FNBUFF 512
+#define LNBUFF 512
#define TMPPATH "/tmp/pmcannotate.XXXXXX"
OpenPOWER on IntegriCloud