From 8167f58e118afa658590253f8696c816511c3708 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sat, 31 Jul 2021 21:16:15 -0600 Subject: * Clear more warnings given by gcc-10. Work in progress. --- pico/osdep/color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pico/osdep/color.c') diff --git a/pico/osdep/color.c b/pico/osdep/color.c index 312348c1..4dcb5881 100644 --- a/pico/osdep/color.c +++ b/pico/osdep/color.c @@ -1680,7 +1680,7 @@ color_to_asciirgb(char *colorName) * but at least the embedded colors in filter.c will get properly * sucked up when they're encountered. */ - strncpy(c_to_a_buf[whichbuf], "xxxxxxxxxxx", RGBLEN); /* RGBLEN is 11 */ + strcpy(c_to_a_buf[whichbuf], "xxxxxxxxxxx"); l = strlen(colorName); strncpy(c_to_a_buf[whichbuf], colorName, (l < RGBLEN) ? l : RGBLEN); c_to_a_buf[whichbuf][RGBLEN] = '\0'; -- cgit v1.2.3-70-g09d2