Skip to content

Commit 3b6d076

Browse files
committed
Updated core with IAR fix for --vla and backward compatbility. Fixed config store and bufferedserial when --vla is not present (IAR)
1 parent d6fc3ba commit 3b6d076

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ESP8266/ATParser/BufferedSerial/BufferedPrint.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ size_t BufferedSerialThunk(void *buf_serial, const void *s, size_t length);
2626
int BufferedPrintfC(void *stream, int size, const char* format, va_list arg)
2727
{
2828
int r;
29-
char buffer[size];
29+
char buffer[512];
30+
if (size >= 512) {
31+
return -1;
32+
}
3033
memset(buffer, 0, size);
3134
r = vsprintf(buffer, format, arg);
3235
// this may not hit the heap but should alert the user anyways

0 commit comments

Comments
 (0)