From 703c875144bb365e6448b41493aa0d6615e10520 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Fri, 22 Jan 2021 11:19:28 -0500 Subject: Thanks compile warnings! --- include/lcdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/lcdlib.c') diff --git a/include/lcdlib.c b/include/lcdlib.c index a22a1e2..ea47062 100644 --- a/include/lcdlib.c +++ b/include/lcdlib.c @@ -44,7 +44,7 @@ lcd_put_line(const enum LCD_WRITE_MODE mode, const char *line) { // previous string there fprintf(lcd, "%sy%dx0;%sk%s", esc, y-1, esc, previous_lines[y]); // Overwrite the stored previous line with the next - strncpy(previous_lines[y-1], previous_lines[y], 16); + strncpy(previous_lines[y-1], previous_lines[y], 17); } line_idx--; } -- cgit v1.2.3