Buffer size was not sufficient for all cpu names.
Signed-off-by: Robert Richter <[email protected]>
---
pfmon/pfmon_amd64.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pfmon/pfmon_amd64.c b/pfmon/pfmon_amd64.c
index 5683818..1d375e0 100644
--- a/pfmon/pfmon_amd64.c
+++ b/pfmon/pfmon_amd64.c
@@ -198,7 +198,7 @@ static struct option cmd_amd64_options[]={
{ 0, 0, 0, 0}
};
-#define NAME_SIZE 32
+#define NAME_SIZE 64
static char amd64_pmu_name[NAME_SIZE];
pfmon_support_t pfmon_amd64;
--
1.6.1.2
------------------------------------------------------------------------------
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel