summaryrefslogtreecommitdiff
path: root/pico/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'pico/osdep')
-rw-r--r--pico/osdep/color.c2
1 files changed, 1 insertions, 1 deletions
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';