[PATCH 1/7] dnsapi: Increase buffer size to fix format-overflow warning.

Rémi Bernon rbernon at codeweavers.com
Wed Nov 13 07:51:18 CST 2019


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/dnsapi/query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c
index e601191c5de..f540662dfd2 100644
--- a/dlls/dnsapi/query.c
+++ b/dlls/dnsapi/query.c
@@ -71,7 +71,7 @@ static const char *dns_section_to_str( ns_sect section )
     case ns_s_ar:   return "Additional";
     default:
     {
-        static char tmp[5];
+        static char tmp[11];
         FIXME( "unknown section: 0x%02x\n", section );
         sprintf( tmp, "0x%02x", section );
         return tmp;
-- 
2.24.0.rc2




More information about the wine-devel mailing list