changeset 627:2dc96f1fd83d

Use computed string length.
author zas_
date Sun, 11 May 2008 11:44:58 +0000
parents 20495dd4e6e6
children bbe8e71cdfb2
files src/ui_help.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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