[qfcc] Ensure non-unicode char string is terminated

Once a unicode char (ie, > 127) was used, any ascii chars would get the
tail of the last unicode char resulting in broken utf-8 streams. The
resulting null glyph boxes were not very appealing.
This commit is contained in:
Bill Currie 2022-12-10 21:53:45 +09:00
parent 6fc2dcae20
commit 490217a136
1 changed files with 1 additions and 0 deletions

View File

@ -411,6 +411,7 @@ make_string (char *token, char **end)
unicount = 0;
} else {
s[0] = c;
s[1] = 0;
}
dstring_appendstr (str, s);
} while (1);