mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
use macro for replace malloc api (see skynet_malloc.h)
This commit is contained in:
@@ -29,7 +29,7 @@ skynet_error(struct skynet_context * context, const char *msg, ...) {
|
||||
int len = vsnprintf(tmp, LOG_MESSAGE_SIZE, msg, ap);
|
||||
va_end(ap);
|
||||
if (len < LOG_MESSAGE_SIZE) {
|
||||
data = strdup(tmp);
|
||||
data = skynet_strdup(tmp);
|
||||
} else {
|
||||
int max_size = LOG_MESSAGE_SIZE;
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user