Skip to content

Commit

Permalink
Use computed string length.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 11, 2008
1 parent 53e7b0d commit b01f014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui_help.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static void help_window_load_text(GtkWidget *text, const gchar *path)

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
Expand Down

0 comments on commit b01f014

Please sign in to comment.