## Description: add some description ## Origin/Author: add some origin or author ## Bug: bug URL Index: libplist-1.4/swig/plist.i =================================================================== --- libplist-1.4.orig/swig/plist.i 2011-09-14 21:06:34.754757464 -0500 +++ libplist-1.4/swig/plist.i 2011-09-14 21:06:35.144749864 -0500 @@ -10,15 +10,15 @@ %include "stdint.i" %typemap(out) std::vector { - $result = SWIG_FromCharPtrAndSize((const char*)&($1[0]),(int)($1.size())); + $result = SWIG_FromCharPtrAndSize((const char*)&($1[0]),(size_t)($1.size())); } -%typemap(in) (const std::vector& v) +%typemap(in) (const std::vector&) { char* buffer = NULL; - int length = 0; + size_t length = 0; SWIG_AsCharPtrAndSize($input, &buffer, &length, NULL); - $1 = std::vector(buffer, buffer + length); + $1 = new std::vector(buffer, buffer + length - 1); } #if SWIGPYTHON