diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.xs | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- fix crashing in ptread when using log callback with rpm-4.12 + Version 5.00 - 12 September 2014 - make it compatible with rpm-4.12.0 @@ -121,8 +121,8 @@ static ssize_t write_nocheck(int fd, const void *buf, size_t count) { } static int rpmError_callback_data; -static int rpmError_callback() { - write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage())); +static int rpmError_callback(rpmlogRec rec, rpmlogCallbackData data) { + write_nocheck(rpmError_callback_data, rpmlogRecMessage(rec), strlen(rpmlogRecMessage(rec))); return RPMLOG_DEFAULT; } |