mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +00:00
[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:
parent
6fc2dcae20
commit
490217a136
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue