mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
syslog requires format string
Signed-off-by: Edwin van den Oetelaar <oetelaar.automatisering@gmail.com>
This commit is contained in:
parent
f431247270
commit
f6eeabc749
1 changed files with 2 additions and 2 deletions
|
@ -1473,7 +1473,7 @@ libwebsocket_create_context(int port, const char *interf,
|
|||
free(context);
|
||||
return NULL;
|
||||
}
|
||||
context->lws_lookup = (struct libwebsocket **)malloc(sizeof(struct libwebsocke *) * context->max_fds);
|
||||
context->lws_lookup = (struct libwebsocket **)malloc(sizeof(struct libwebsocket *) * context->max_fds);
|
||||
if (context->lws_lookup == NULL) {
|
||||
lwsl_err("Unable to allocate lws_lookup array for %d connections\n", context->max_fds);
|
||||
free(context->fds);
|
||||
|
@ -2204,7 +2204,7 @@ void lwsl_emit_syslog(int level, const char *line)
|
|||
syslog_level = LOG_INFO;
|
||||
break;
|
||||
}
|
||||
syslog(syslog_level, line);
|
||||
syslog(syslog_level, "%s", line);
|
||||
}
|
||||
|
||||
void _lws_log(int filter, const char *format, ...)
|
||||
|
|
Loading…
Add table
Reference in a new issue