summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index c51517c..2ea5400 100644
--- a/math.c
+++ b/math.c
@@ -470,7 +470,7 @@ negf(void)
if (dispstr[0]=='-') /* already neg-ed */
strcpy(dispstr,dispstr+1); /* move str left once */
else { /* not neg-ed. add a '-' */
- char tmp[32];
+ char tmp[LCD_STR_LEN + 1];
snprintf(tmp, sizeof(tmp), "-%s", dispstr);
strlcpy(dispstr, tmp, sizeof(dispstr));
}