diff options
Diffstat (limited to 'graphics/swfmill/files/patch-src_codegen_parsexml.xsl')
-rw-r--r-- | graphics/swfmill/files/patch-src_codegen_parsexml.xsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/swfmill/files/patch-src_codegen_parsexml.xsl b/graphics/swfmill/files/patch-src_codegen_parsexml.xsl new file mode 100644 index 000000000000..15222ae2e414 --- /dev/null +++ b/graphics/swfmill/files/patch-src_codegen_parsexml.xsl @@ -0,0 +1,11 @@ +--- src/codegen/parsexml.xsl.orig 2013-10-30 17:33:35 UTC
++++ src/codegen/parsexml.xsl
+@@ -19,7 +19,7 @@ char *fromXmlChar(const Context *ctx, co
+ if (ctx->convertEncoding) {
+ size_t len = strlen((const char *)from_str);
+ iconv_t cd = iconv_open(ctx->swf_encoding, "UTF-8");
+- if (cd < 0) {
++ if (cd == NULL) {
+ fprintf(stderr, "iconv_open failed.\n");
+ char *buf = new char[1];
+ buf[0] = '\0';
|