-- fixed a couple of implicit declarations which should help the opensuse build process
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
#include <log4c/defs.h>
|
||||
#include <log4c/layout.h>
|
||||
#include <stdio.h>
|
||||
#include <sd/malloc.h>
|
||||
#include <sd/sprintf.h>
|
||||
#include <string.h>
|
||||
|
||||
__LOG4C_BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user