http://qs1969.pair.com?node_id=11148349


in reply to Re^4: Perl XS binding to a struct with an array of chars*
in thread Perl XS binding to a struct with an array of chars*

Yeah, I remember seeing two different I/F definitions and being confused about which one was "truth". My C environment is a bit boogered at the moment so I wasn't able to run test code.

But in any event, yes, safemalloc() with an explicit size calculation appears to be the correct API in this situation.