X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffrm_driver.c;h=4847149ea34f157a3e1cec4dd268c535b1e21df6;hp=8d9bd3ba6f5091ead1be0eb3aac5c0e9d2018284;hb=59108c98bda25ae50b3a319e2bcb7f4b9a174024;hpb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6 diff --git a/form/frm_driver.c b/form/frm_driver.c index 8d9bd3ba..4847149e 100644 --- a/form/frm_driver.c +++ b/form/frm_driver.c @@ -32,7 +32,7 @@ #include "form.priv.h" -MODULE_ID("$Id: frm_driver.c,v 1.90 2009/08/29 19:02:25 tom Exp $") +MODULE_ID("$Id: frm_driver.c,v 1.91 2009/10/10 16:17:01 tom Exp $") /*---------------------------------------------------------------------------- This is the core module of the form library. It contains the majority @@ -4534,7 +4534,7 @@ _nc_Widen_String(char *source, int *lengthp) source[passed + tries] = 0; reset_mbytes(state); status = trans_mbytes(wch, source + passed, tries, state); - source[passed + tries] = save; + source[passed + tries] = (char)save; if (status > 0) {