diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-07-31 21:16:15 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-07-31 21:16:15 -0600 |
commit | 8167f58e118afa658590253f8696c816511c3708 (patch) | |
tree | b79d65ce860848c50449b69ae299898b71c3e322 /pico/osdep | |
parent | bba1f63e9be0b65c090d1707a6c9168443604ed6 (diff) | |
download | alpine-8167f58e118afa658590253f8696c816511c3708.tar.xz |
* Clear more warnings given by gcc-10. Work in progress.
Diffstat (limited to 'pico/osdep')
-rw-r--r-- | pico/osdep/color.c | 2 |
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'; |