From 332fa27640b1901ac632e6d37a4aa9643d0f8594 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 20 Oct 2021 23:22:45 +0000 Subject: ncurses-6.3 --- ncurses/base/lib_instr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ncurses/base/lib_instr.c') diff --git a/ncurses/base/lib_instr.c b/ncurses/base/lib_instr.c index 2aa0fc3..b9874b7 100644 --- a/ncurses/base/lib_instr.c +++ b/ncurses/base/lib_instr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020 Thomas E. Dickey * + * Copyright 2020,2021 Thomas E. Dickey * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -42,7 +42,7 @@ #include -MODULE_ID("$Id: lib_instr.c,v 1.24 2020/02/02 23:34:34 tom Exp $") +MODULE_ID("$Id: lib_instr.c,v 1.25 2021/04/03 22:24:18 tom Exp $") NCURSES_EXPORT(int) winnstr(WINDOW *win, char *str, int n) @@ -66,7 +66,6 @@ winnstr(WINDOW *win, char *str, int n) cchar_t *cell = &(text[col]); attr_t attrs; NCURSES_PAIRS_T pair; - mbstate_t state; char *tmp; if (!isWidecExt(*cell)) { @@ -79,6 +78,7 @@ winnstr(WINDOW *win, char *str, int n) bool done = FALSE; if (getcchar(cell, wch, &attrs, &pair, 0) == OK) { + mbstate_t state; size_t n3; init_mb(state); -- cgit v1.2.1