diff --git a/src/rpmfunctions.c b/src/rpmfunctions.c index 0833585..3c5c345 100644 --- a/src/rpmfunctions.c +++ b/src/rpmfunctions.c @@ -85,7 +85,7 @@ unsigned int checkVersionWithFlags(const char* cmp1, uint_32 flags, const char* /* * get header from a file descriptor of a YUM compressed header file */ int -getHeader(rpmts* ts, char *headerFile, Header * h) +getHeader(rpmts* ts, char *headerFile, Header *h) { char buffer[HEADERS_BUFFER_SIZE]; int len; @@ -107,7 +107,7 @@ getHeader(rpmts* ts, char *headerFile, Header * h) return 2; } - *h = headerLoad(buffer); + *h = headerImport(buffer, sizeof(Header), 0); } else { FD_t fd;