[Pidgin] #9308: wrong datatype in libpurple perl bindings imgStore.xs
Pidgin
trac at pidgin.im
Thu Jun 4 09:52:58 EDT 2009
#9308: wrong datatype in libpurple perl bindings imgStore.xs
--------------------------------------------+-------------------------------
Reporter: quick | Owner:
Type: patch | Status: pending
Milestone: | Component: libpurple
Version: 2.5.5 | Resolution:
Keywords: perl imgStore datatype typemap |
--------------------------------------------+-------------------------------
Changes (by quick):
* status: pending => new
Comment:
in imgStore.xs
purple_imgstore_add_with_id(data, size, filename)
void *data
void *data
gets translated to:
void * data = INT2PTR(void *,SvIV(ST(0)));
in imgStore.c
now if pidgin tries to access the image via imgStore it just returns the
address instead of the actual image data.
changing
void *data to char* data
compiles to c:
char * data = (char *)SvPV_nolen(ST(0));
now pidgin can access the image data.
--
Ticket URL: <http://developer.pidgin.im/ticket/9308#comment:3>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list