diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-10-25 13:14:11 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-10-25 13:14:11 +0000 |
commit | c80a16c97c90af46efc30e781554577de9db3581 (patch) | |
tree | ae1af3fec984b704b7a9211145a9af852d3a3bd9 /x11/libxklavier | |
parent | Update to 2.16 (diff) |
Do not return static memory which will be free()d by caller.
PR: 73089
Submitted by: Oleg Sharoiko <os@rsu.ru>
Notes
Notes:
svn path=/head/; revision=120148
Diffstat (limited to 'x11/libxklavier')
-rw-r--r-- | x11/libxklavier/Makefile | 1 | ||||
-rw-r--r-- | x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/x11/libxklavier/Makefile b/x11/libxklavier/Makefile index 3f0fa3d20022..f7dd7074c546 100644 --- a/x11/libxklavier/Makefile +++ b/x11/libxklavier/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxklavier PORTVERSION= 1.04 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c b/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c new file mode 100644 index 000000000000..fed33a78f971 --- /dev/null +++ b/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c @@ -0,0 +1,18 @@ +--- libxklavier/xklavier_config_i18n.c.orig Mon Oct 25 21:55:29 2004 ++++ libxklavier/xklavier_config_i18n.c Mon Oct 25 21:56:51 2004 +@@ -142,13 +142,14 @@ + XklDebug( 0, + "Unable to convert %s from UTF-8 to %s, this string will probably display wrong.", + utf8string, charset ); ++ iconv_close( converter ); + return strdup( utf8string ); + } + *convertedStart = '\0'; + + iconv_close( converter ); + +- return converted; ++ return strdup( converted ); + } + + /* |