Fix timestamp buffer length overrun
Addresses the buffer overrun introduced by format changes.
Change-Id: I8341818747b43883a3d3b243e9a1fbc5bcc927cf
Signed-off-by: Andrew Adriance <aadriance@nvidia.com>
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/cper-parse.c b/cper-parse.c
index 0eaebe4..9bfdb40 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -133,7 +133,8 @@
//If a timestamp exists according to validation bits, then add it.
if (header->ValidationBits & 0x2) {
char timestamp_string[TIMESTAMP_LENGTH];
- timestamp_to_string(timestamp_string, &header->TimeStamp);
+ timestamp_to_string(timestamp_string, TIMESTAMP_LENGTH,
+ &header->TimeStamp);
json_object_object_add(
header_ir, "timestamp",