diff --git a/import/log4c/log4c/appender.h b/import/log4c/log4c/appender.h index 56197f0..187f693 100644 --- a/import/log4c/log4c/appender.h +++ b/import/log4c/log4c/appender.h @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include __LOG4C_BEGIN_DECLS diff --git a/import/log4c/log4c/appender_type_syslog.c b/import/log4c/log4c/appender_type_syslog.c index 97965d7..683f0d4 100644 --- a/import/log4c/log4c/appender_type_syslog.c +++ b/import/log4c/log4c/appender_type_syslog.c @@ -64,7 +64,7 @@ static int syslog_append(log4c_appender_t* this, // we want to remove any '%' formatting characters from the // log string, since syslog will try to interpolate them source = a_event->evt_rendered_msg; - dest = (char *)malloc((strlen(source)*2) + 1); + dest = (char *)sd_malloc((strlen(source)*2) + 1); if (dest == NULL) return -1; // out of memory *dest = '\0'; origdest = dest;