[apps/calculation] Expression buffer max length: k_printedExpressionSize

Change-Id: I41603624f7f7a4d3213ec6ea43297b75b204ed03
This commit is contained in:
Léa Saviot
2018-05-16 15:37:57 +02:00
committed by EmilieNumworks
parent 2e0a70f269
commit a2226eb5f8

View File

@@ -74,7 +74,7 @@ bool App::expressionLayoutFieldDidReceiveEvent(::ExpressionLayoutField * express
return true;
}
int bufferLength = TextField::maxBufferSize();
int bufferLength = Calculation::k_printedExpressionSize;
char bufferForParsing[bufferLength];
expressionLayoutField->writeTextInBuffer(bufferForParsing, bufferLength);