mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
increase ota message buffer size by a byte - release
This commit is contained in:
@@ -95,7 +95,7 @@ void sendMessaging(messaging_types type,const char * fmt, ...){
|
|||||||
char * msg_str=NULL;
|
char * msg_str=NULL;
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
str_len = vsnprintf(NULL,0,fmt,args);
|
str_len = vsnprintf(NULL,0,fmt,args)+1;
|
||||||
if(str_len>0){
|
if(str_len>0){
|
||||||
msg_str = malloc(str_len);
|
msg_str = malloc(str_len);
|
||||||
vsnprintf(msg_str,str_len,fmt,args);
|
vsnprintf(msg_str,str_len,fmt,args);
|
||||||
|
|||||||
Reference in New Issue
Block a user