Fixed the stupid unicode bug

This commit is contained in:
2017-09-09 14:38:03 +02:00
parent 3b7cd0a42e
commit 3926776adc
5 changed files with 61 additions and 46 deletions
+3 -3
View File
@@ -1396,10 +1396,10 @@ screenSerializeToBuffer(char *buffer, size_t buf_len, void **data)
// copy the symbol, until first 0 or reached 4 bytes
char c;
int j = 0;
while ((c = cell->c[j]) != 0 && j < 4) {
for(int j=0; j<4; j++) {
c = cell->c[j];
if(!c) break;
bufput_c(c);
j++;
}
ss->lastFg = cell0->fg;