aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2006-05-15 09:29:24 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2006-05-15 09:29:24 +0000
commitd00f01ce793a831c44a2b185024d4664feac00cb (patch)
tree3f57c326ebe530d9b5e61b4a457e05c50eb7b879 /audio
parentb3b36591406d697590cc6380ae967d883e9703d4 (diff)
downloadports-d00f01ce793a831c44a2b185024d4664feac00cb.tar.gz
ports-d00f01ce793a831c44a2b185024d4664feac00cb.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/wavpack/files/patch-wvunpack.c20
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);