From d33576b2df758d1fc85a8a6dea680fb0382858b5 Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Wed, 27 Jul 2022 07:39:31 +0200 Subject: [PATCH] Increase size of buffer --- src/calc.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calc.cpp b/src/calc.cpp index 6078a14..a8ca51e 100644 --- a/src/calc.cpp +++ b/src/calc.cpp @@ -98,8 +98,11 @@ int createFormula(RawFormulaData &fd, char *formulaBuffer, // If the deviation is more than 2 degress we mark it as failed. if (dev * 1000 > myAdvancedConfig.getMaxFormulaCreationDeviation()) { - char s[60]; - snprintf(&s[0], sizeof(s), "CALC: Validation failed on angle %f, deviation too large %.8f", fd.a[i], dev); + char s[120]; + snprintf( + &s[0], sizeof(s), + "CALC: Validation failed on angle %f, deviation too large %.8f", + fd.a[i], dev); ErrorFileLog errLog; errLog.addEntry(&s[0]); valid = false;