From: Jonathan Wakely Date: Thu, 18 Feb 2021 17:07:44 +0000 (+0000) Subject: Avoid -Wstringop-overflow warning X-Git-Tag: v6.4.2~6 X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=7dbbdf619162c2114c175e66983cbbd4d9b6ca01;p=SCSI2SD-V6.git Avoid -Wstringop-overflow warning Increase buffer size to keep GCC happy. --- 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);