Fix settings JS buffer too small (#2323)

This commit is contained in:
Christian Schwinne
2021-11-09 09:56:02 +01:00
committed by GitHub
parent d6ad089c60
commit 5784092c1b
3 changed files with 8 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ bool oappendi(int i)
bool oappend(const char* txt)
{
uint16_t len = strlen(txt);
if (olen + len >= OMAX)
if (olen + len >= SETTINGS_STACK_BUF_SIZE)
return false; // buffer full
strcpy(obuf + olen, txt);
olen += len;