From b0a5fb35e984aa7075b2918fece6c6f187a2c732 Mon Sep 17 00:00:00 2001 From: gunboy001 Date: Tue, 3 Dec 2019 21:45:48 +0100 Subject: [PATCH] minor changes --- .sconsign.dblite | Bin 3124 -> 3124 bytes src/ste.c | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.sconsign.dblite b/.sconsign.dblite index f5f9f97b46364e8f62ba01e0e185785cb55ec258..500006599782bda36867d782e2436c867b9e7f7a 100644 GIT binary patch delta 230 zcmdlYu|;CSG|%Ig9>r#`dNYNxBo}9<7jlOx7^ftgSehp$8mFZi8YG*V7@H=im>VTo zm>5~6CMB5|6!L_!6lYeY7V>&eElmn#P0Gwm%P-`c{E$s<;@{QGUspe#yqfWX0L;qnwzCsrX>R@LnDhc6Z1ra zv=n30L<5tg!t@MY-^$4oSoH)D+A_d`o6oVfvv2_og&3wdc>{~` E0BZYCtN;K2 delta 230 zcmdlYu|;CSG*2OxE3p}@-b|q^$;FxJh1{VEmL@5Q=B5^=sfj7Z$p#kY2FXb&CTT_% zrb)>uMk$Gwg*>4w#hF#9g}mNzrAeWzNtt@ zoxzg!t@MY-@eHcSoH)D+A_d`o6oVfvv2_og&3wdc>{~` E0EQb*ZU6uP diff --git a/src/ste.c b/src/ste.c index f5dfbfd..984bf6e 100644 --- a/src/ste.c +++ b/src/ste.c @@ -15,7 +15,6 @@ #define CTRL(k) ((k) & 0x1f) // Control mask modifier #define STAT_SIZE 128 #define CBUF_SIZE 2048 -#define MAX_LINE 1024 #define MODE_MASK 0x1 #define COMMAND_MASK 0x06 @@ -332,8 +331,9 @@ void drawLines (void) while (isCont(rows.rw[ln].render[start])) start++; static wchar_t converted_line[MAX_LINE]; - static int x = 0; + static int x; for (x = 0; x < MAX_LINE; x++) converted_line[x] = 0; + mbstowcs(converted_line, &rows.rw[ln].render[start], MAX_LINE); addnwstr(converted_line, t.dim.x + 1);