Author: ek.kato
Date: Mon Jan 28 20:10:25 2008
New Revision: 5144
Modified:
trunk/xim/locale.cpp
Log:
* xim/locale.cpp (UTF8_Locale::utf8_to_native_str) : Oops, fix
previsous commit.
Modified: trunk/xim/locale.cpp
==============================================================================
--- trunk/xim/locale.cpp (original)
+++ trunk/xim/locale.cpp Mon Jan 28 20:10:25 2008
@@ -292,7 +292,7 @@
*outchar = '\0';
- strlcpy(convstr, outbuf, outbufsize);
+ strlcpy(convstr, outbuf, outbufsize - outbytesleft);
free(outbuf);
return convstr;
}