Module: wine Branch: master Commit: df75c9ed3c313e7e3760faa1b478f180ab10f505 URL: https://gitlab.winehq.org/wine/wine/-/commit/df75c9ed3c313e7e3760faa1b478f18...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Oct 16 10:31:04 2023 +0200
include: Fix debugstr_fourcc printf format to print at most 4 chars.
---
include/wine/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/wine/debug.h b/include/wine/debug.h index d0862942be8..70fab5a247b 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -330,7 +330,7 @@ static inline const char *wine_dbgstr_fourcc( unsigned int fourcc ) if (!fourcc) return "''"; if (isprint( str[0] ) && isprint( str[1] ) && isprint( str[2] ) && isprint( str[3] )) - return wine_dbg_sprintf( "'%4s'", str ); + return wine_dbg_sprintf( "'%.4s'", str ); return wine_dbg_sprintf( "0x%08x", fourcc ); }