Avoid -Wstringop-overflow warning
authorJonathan Wakely <github@kayari.org>
Thu, 18 Feb 2021 17:07:44 +0000 (17:07 +0000)
committerMichael McMaster <michael@codesrc.com>
Mon, 26 Apr 2021 10:59:59 +0000 (20:59 +1000)
Increase buffer size to keep GCC happy.

src/scsi2sd-util6/TerminalWx/src/GTerm/actions.cpp

index 3ac3b232ff4e245f2efdc52d14f788ee4da7a34c..2cd1e4f23950ee6b88c4416a911d11d35f05f90c 100644 (file)
@@ -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);