]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Quick fix on COM_ToLowerString/COM_ToUpperString to let them work right on null UTF8...
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 28 Jul 2011 10:20:57 +0000 (10:20 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 31 Jul 2011 18:54:47 +0000 (20:54 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11256 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4691c4289b19b607d99c46b8a47ae82bb01c32b0

common.c

index 69a7a5d8d2c43718d701d08d5e30411ba24321c4..d939a0207492aa1ad6ae0baf1e47f3ac0a4214ae 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1693,6 +1693,7 @@ void COM_ToLowerString (const char *in, char *out, size_t size_out)
 
        if(utf8_enable.integer)
        {
+               *out = 0;
                while(*in && size_out > 1)
                {
                        int n;
@@ -1725,6 +1726,7 @@ void COM_ToUpperString (const char *in, char *out, size_t size_out)
 
        if(utf8_enable.integer)
        {
+               *out = 0;
                while(*in && size_out > 1)
                {
                        int n;