aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-22 11:19:28 -0500
committertslil <tslil@posteo.de>2021-01-22 11:19:28 -0500
commit47db0959e13b4ff0ab6a54fdfb914755f88701f9 (patch)
treed2d8e993ca6eee7c448cad7764fa5fe0b7e650a6 /include
parent4d56123188d8f697c0b1970465cf4f685f980f22 (diff)
Thanks compile warnings!
Diffstat (limited to 'include')
-rw-r--r--include/lcdlib.c2
1 files changed, 1 insertions, 1 deletions
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--;
}