increase ota message buffer size by a byte - release

This commit is contained in:
Sebastien
2020-02-21 17:26:14 -05:00
parent 168c15ce02
commit 34459f54ef

View File

@@ -95,7 +95,7 @@ void sendMessaging(messaging_types type,const char * fmt, ...){
char * msg_str=NULL;
va_start(args, fmt);
str_len = vsnprintf(NULL,0,fmt,args);
str_len = vsnprintf(NULL,0,fmt,args)+1;
if(str_len>0){
msg_str = malloc(str_len);
vsnprintf(msg_str,str_len,fmt,args);