From 7dbbdf619162c2114c175e66983cbbd4d9b6ca01 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 18 Feb 2021 17:07:44 +0000 Subject: [PATCH] Avoid -Wstringop-overflow warning Increase buffer size to keep GCC happy. --- src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp b/src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp index 3ac3b232..2cd1e4f2 100644 --- a/src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp +++ b/src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp @@ -353,7 +353,7 @@ void GTerm::delete_line() void GTerm::status_report() { - char str[20]; + char str[64]; if (param[0] == 5) { char *str = "\033[0n"; ProcessOutput(strlen(str), (unsigned char *)str); -- 2.38.5