From 72114e413e229865957b738e05872ca59dabc6ac Mon Sep 17 00:00:00 2001 From: nanardon Date: Fri, 20 Jul 2007 08:25:30 +0000 Subject: - fix header->string git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@134 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RPM4/src/RPM4.xs') diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 8fa3bff..064d5da 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -998,10 +998,10 @@ Header_string(h, no_header_magic = 0) void * ptr = NULL; int hsize = 0; PPCODE: + hsize = headerSizeof(h, no_header_magic ? HEADER_MAGIC_NO : HEADER_MAGIC_YES); string = headerUnload(h); - hsize = headerSizeof((Header) string, no_header_magic ? HEADER_MAGIC_NO : HEADER_MAGIC_YES); ptr = string + (no_header_magic ? offset : 0); - PUSHs(sv_2mortal(newSVpv((char *)ptr, hsize))); + XPUSHs(sv_2mortal(newSVpv((char *)ptr, hsize))); free(string); int -- cgit v1.2.1