-- fixed a couple of implicit declarations which should help the opensuse build process

This commit is contained in:
pfelt
2009-02-15 23:00:45 +00:00
parent 70d6da04ab
commit 6f3e23c50e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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;