diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-06-02 11:13:03 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-06-02 11:13:03 -0400 |
commit | 2e603165000c097bae8e9cecd502912a50006a5a (patch) | |
tree | c861f07ba902caebf6d6f35afdab589bfaaf8eed | |
parent | 5c7fbe8f1b5d78bf03c98d72a18ca13e74261e7b (diff) | |
download | rockbox-2e60316500.tar.gz rockbox-2e60316500.zip |
[coverity] skin_parser.c load_skin_bitmaps check buffer length for bm_data
Change-Id: Ia4496916bf32de332e054b62f1708b3e2ec8e7d8
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 867f2b6a18..8e9b3fa990 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -2026,7 +2026,7 @@ static bool load_skin_bitmaps(struct wps_data *wps_data, char *bmpdir) { char path[MAX_PATH]; int handle; - strcpy(path, img->bm.data); + strmemccpy(path, img->bm.data, sizeof(path)); handle = load_skin_bmp(wps_data, img, bmpdir); img->buflib_handle = handle; img->loaded = img->buflib_handle > 0; |