X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinucs.c;h=c1888f9eda93ba6663b6368ef9a36d348f8f62e7;hb=c7f466309c5052271adc7e433cc415407ee2325b;hp=187bd9da1fadd8429832d1f9b443f3afec3edfb4;hpb=353b85be675535594fd5796ec91dfae866656879;p=PuTTY.git diff --git a/windows/winucs.c b/windows/winucs.c index 187bd9da..c1888f9e 100644 --- a/windows/winucs.c +++ b/windows/winucs.c @@ -441,12 +441,8 @@ void init_ucs(Conf *conf, struct unicode_data *ucsdata) { int i, j; int used_dtf = 0; - char tbuf[256]; int vtmode; - for (i = 0; i < 256; i++) - tbuf[i] = i; - /* Decide on the Line and Font codepages */ ucsdata->line_codepage = decode_codepage(conf_get_str(conf, CONF_line_codepage)); @@ -1165,7 +1161,7 @@ void get_unitab(int codepage, wchar_t * unitab, int ftype) } int wc_to_mb(int codepage, int flags, const wchar_t *wcstr, int wclen, - char *mbstr, int mblen, char *defchr, int *defused, + char *mbstr, int mblen, const char *defchr, int *defused, struct unicode_data *ucsdata) { char *p;