fix xcmd_print bug
修改xcmd_print代码,解决当字符串长度超过128的时候出现段错误的问题
This commit is contained in:
parent
14ab2c3805
commit
496dcb9ea4
|
@ -249,7 +249,7 @@ void xcmd_print(const char *fmt, ...)
|
|||
char ucstring[128] = {0};
|
||||
va_list arg;
|
||||
va_start(arg, fmt);
|
||||
vsnprintf(ucstring, 256, fmt, arg);
|
||||
vsnprintf(ucstring, 128, fmt, arg);
|
||||
va_end(arg);
|
||||
|
||||
for(uint16_t i=0; ucstring[i]; i++)
|
||||
|
|
Loading…
Reference in New Issue