[Pkg-javascript-commits] [node-iconv] 16/16: glibc iconv api is not using const char* for input buffer

Jérémy Lal kapouer at moszumanska.debian.org
Sat Jun 14 16:27:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-iconv.

commit ad8539aceb6aaf76abe498d96a5f6be4d338a050
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Jun 14 16:54:07 2014 +0200

    glibc iconv api is not using const char* for input buffer
---
 debian/patches/use-glibc-iconv.patch | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/patches/use-glibc-iconv.patch b/debian/patches/use-glibc-iconv.patch
index 4db0f96..fcc6f57 100644
--- a/debian/patches/use-glibc-iconv.patch
+++ b/debian/patches/use-glibc-iconv.patch
@@ -37,3 +37,12 @@ Last-Update: 2014-06-14
  #include "nan.h"
  
  #include <errno.h>
+@@ -97,7 +97,7 @@
+     NanScope();
+     Iconv* iv = static_cast<Iconv*>(
+         NanGetInternalFieldPointer(args[0].As<Object>(), 0));
+-    const char* input_buf = static_cast<const char*>(  // NULL on flush.
++    char* input_buf = static_cast<char*>(  // NULL on flush.
+         args[1].As<Object>()->GetIndexedPropertiesExternalArrayData());
+     size_t input_start = args[2]->Uint32Value();
+     size_t input_size = args[3]->Uint32Value();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-iconv.git



More information about the Pkg-javascript-commits mailing list