From d1f0b020f06eaca34ed30bac041c495ce9aa8486 Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 9 Oct 2018 14:42:18 +0000 Subject: [PATCH] [bacnet:bugs] #57 fix to increase filename buffer to avoid compile warning. Thank you, Joe Burmeister! --- bacnet-stack/demo/mstpcap/main.c | 2 +- bacnet-stack/demo/mstpcrc/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bacnet-stack/demo/mstpcap/main.c b/bacnet-stack/demo/mstpcap/main.c index d8ffe232..4b7efe62 100644 --- a/bacnet-stack/demo/mstpcap/main.c +++ b/bacnet-stack/demo/mstpcap/main.c @@ -450,7 +450,7 @@ uint16_t MSTP_Get_Reply( return 0; } -static char Capture_Filename[32] = "mstp_20090123091200.cap"; +static char Capture_Filename[64] = "mstp_20090123091200.cap"; static FILE *pFile = NULL; /* stream pointer */ #if defined(_WIN32) static HANDLE hPipe = INVALID_HANDLE_VALUE; /* pipe handle */ diff --git a/bacnet-stack/demo/mstpcrc/main.c b/bacnet-stack/demo/mstpcrc/main.c index f07a8b8b..a5589a8f 100644 --- a/bacnet-stack/demo/mstpcrc/main.c +++ b/bacnet-stack/demo/mstpcrc/main.c @@ -63,7 +63,7 @@ static unsigned CRC_Size = 8; /* save to capture file for viewing in Wireshark */ static bool MSTP_Cap = false; static bool MSTP_Text_File = false; -static char Capture_Filename[32] = "mstp_20090123091200.cap"; +static char Capture_Filename[64] = "mstp_20090123091200.cap"; static FILE *pFile = NULL; /* stream pointer */ static FILE *pText_File = NULL; /* stream pointer */