diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-09 20:52:27 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-09 20:52:27 +0000 |
commit | 9d20fc2a8d89db71f2263bf5d1e6aec6e5d64857 (patch) | |
tree | fb3586d08c199bba98df11b6c59ecdcdd8695bdf /games/gtetrinet/files | |
parent | 8f4e84e587460833eb31b5d8820e27289a210980 (diff) | |
download | ports-9d20fc2a8d89db71f2263bf5d1e6aec6e5d64857.tar.gz ports-9d20fc2a8d89db71f2263bf5d1e6aec6e5d64857.zip |
Notes
Diffstat (limited to 'games/gtetrinet/files')
-rw-r--r-- | games/gtetrinet/files/patch-src_misc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games/gtetrinet/files/patch-src_misc.c b/games/gtetrinet/files/patch-src_misc.c new file mode 100644 index 000000000000..4f2680e0e54b --- /dev/null +++ b/games/gtetrinet/files/patch-src_misc.c @@ -0,0 +1,18 @@ +--- src/misc.c.orig Sun May 8 16:05:33 2005 ++++ src/misc.c Sun May 8 16:06:48 2005 +@@ -145,6 +145,7 @@ + GtkTextIter iter; + guchar* p; + guchar* text=g_strdup(str); ++ gchar out[7]; /* max utf-8 length plus \0 */ + + + /* is the scroll bar at the bottom ?? */ +@@ -201,7 +202,6 @@ + { + tmp=g_utf8_get_char(p); /* It's not a color code, so get the entire char. */ + /* gchar *out = g_locale_to_utf8 (&text[i], 1, NULL, NULL, NULL); */ +- gchar out[7]; /* max utf-8 length plus \0 */ + out[g_unichar_to_utf8(tmp,out)]='\0'; /* convert and terminate */ + g_assert(g_utf8_validate(out,-1,NULL)); + |