diff src/ui_help.c @ 627:2dc96f1fd83d

Use computed string length.
author zas_
date Sun, 11 May 2008 11:44:58 +0000
parents 20495dd4e6e6
children e34c1002e553
line wrap: on
line diff
--- a/src/ui_help.c	Sun May 11 11:41:32 2008 +0000
+++ b/src/ui_help.c	Sun May 11 11:44:58 2008 +0000
@@ -125,7 +125,7 @@
 
 			if (!g_utf8_validate(s_buf, l, NULL))
 				{
-				buf = g_locale_to_utf8(s_buf, strlen(s_buf), NULL, NULL, NULL);
+				buf = g_locale_to_utf8(s_buf, l, NULL, NULL, NULL);
 				if (!buf) buf = g_strdup("\n");
 				}
 			else