Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
626:20495dd4e6e6 | 627:2dc96f1fd83d |
---|---|
123 | 123 |
124 l = strlen(s_buf); | 124 l = strlen(s_buf); |
125 | 125 |
126 if (!g_utf8_validate(s_buf, l, NULL)) | 126 if (!g_utf8_validate(s_buf, l, NULL)) |
127 { | 127 { |
128 buf = g_locale_to_utf8(s_buf, strlen(s_buf), NULL, NULL, NULL); | 128 buf = g_locale_to_utf8(s_buf, l, NULL, NULL, NULL); |
129 if (!buf) buf = g_strdup("\n"); | 129 if (!buf) buf = g_strdup("\n"); |
130 } | 130 } |
131 else | 131 else |
132 { | 132 { |
133 buf = NULL; | 133 buf = NULL; |