Introduction
Introduction Statistics Contact Development Disclaimer Help
Don't render invalid character sequences. - sam - An updated version of the sam…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit db4aa8bdce3a6f839fa80189c95e09d288999c9c
parent 6d70affba349e7b68711a9940e654a5634a0839b
Author: Rob King <[email protected]>
Date: Fri, 25 Nov 2016 00:05:50 -0600
Don't render invalid character sequences.
Diffstat:
libXg/string.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libXg/string.c b/libXg/string.c
@@ -45,6 +45,8 @@ charwidth(XftFont *f, wchar_t r)
{
char chars[MB_LEN_MAX + 1] = {0};
- runetochar(chars, r);
+ if (runetochar(chars, r) < 0)
+ return 0;
+
return strwidth(f, chars);
}
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.