Module: wine Branch: master Commit: 2455229549914f8075b3ece0eb7d771ec84b2966 URL: https://gitlab.winehq.org/wine/wine/-/commit/2455229549914f8075b3ece0eb7d771...
Author: Alex Henrie alexhenrie24@gmail.com Date: Fri Jun 16 22:02:19 2023 -0600
conhost: Use correct pointer type in edit_line_transpose_words (scan-build).
---
programs/conhost/conhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index c2d48d082c6..21fc8838502 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -865,7 +865,7 @@ static void edit_line_transpose_words( struct console *console ) { unsigned int len_r = right_offset - ctx->cursor; unsigned int len_l = ctx->cursor - left_offset; - char *tmp = malloc( len_r * sizeof(WCHAR) ); + WCHAR *tmp = malloc( len_r * sizeof(WCHAR) ); if (!tmp) { ctx->status = STATUS_NO_MEMORY;