diff options
author | Sam Lawrance <lawrance@FreeBSD.org> | 2006-05-15 09:29:24 +0000 |
---|---|---|
committer | Sam Lawrance <lawrance@FreeBSD.org> | 2006-05-15 09:29:24 +0000 |
commit | d00f01ce793a831c44a2b185024d4664feac00cb (patch) | |
tree | 3f57c326ebe530d9b5e61b4a457e05c50eb7b879 /audio | |
parent | b3b36591406d697590cc6380ae967d883e9703d4 (diff) | |
download | ports-d00f01ce793a831c44a2b185024d4664feac00cb.tar.gz ports-d00f01ce793a831c44a2b185024d4664feac00cb.zip |
Notes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/wavpack/files/patch-wvunpack.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/wavpack/files/patch-wvunpack.c b/audio/wavpack/files/patch-wvunpack.c new file mode 100644 index 000000000000..7fed79334e60 --- /dev/null +++ b/audio/wavpack/files/patch-wvunpack.c @@ -0,0 +1,20 @@ +--- wvunpack.c.orig Thu Apr 6 05:48:33 2006 ++++ wvunpack.c Mon May 15 03:42:14 2006 +@@ -1040,6 +1040,8 @@ + static UTF8ToAnsi (char *string, int len)
+ {
+ int max_chars = strlen (string);
++ ++ iconv_t converter; + #if defined (WIN32)
+ unsigned short *temp = malloc ((max_chars + 1) * 2);
+ int act_chars = UTF8ToWideChar (string, temp);
+@@ -1066,7 +1068,7 @@ +
+ memset(temp, 0, len);
+ old_locale = setlocale (LC_CTYPE, "");
+- iconv_t converter = iconv_open ("", "UTF-8");
++ converter = iconv_open ("", "UTF-8");
+ err = iconv (converter, &inp, &insize, &outp, &outsize);
+ iconv_close (converter);
+ setlocale (LC_CTYPE, old_locale);
|