fix string format warnings, output buffers were not large enough
authorMichael Gilbert <mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000 (01:44 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000 (01:44 +0100)
Gbp-Pq: Topic warnings
Gbp-Pq: Name format-overflow.patch

tools/winedump/msc.c

index 3c632ec19e9e24ff559a640600e510dc89679308..c5ea8bfe51d9fc08c9bbf8a53ada1e7921606ca0 100644 (file)
@@ -462,7 +462,7 @@ static const char* get_callconv(unsigned cc)
     case CV_CALL_RESERVED:      callconv = "reserved"; break;
     default:
         {
-            static char tmp[16];
+            static char tmp[18];
             sprintf(tmp, "callconv=%x", cc);
             callconv = tmp;
         }