Fix compiler warning from menu.c
commit492b22d975a3e60b7cede2445fcea2ddc55c606c
authorDavid Maciejak <david.maciejak@gmail.com>
Fri, 24 Feb 2023 11:21:31 +0000 (24 19:21 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 24 Feb 2023 12:19:38 +0000 (24 12:19 +0000)
treef26e5ccabe08863defdabc099e7860a263627c58
parent62405fbb75126a7dcad45f3f656e9bc790dbd6dc
Fix compiler warning from menu.c

The patch fixes the compiler warning below

menu.c: In function 'restoreMenuRecurs':
menu.c:2450:47: warning: '%s' directive output may be truncated writing up to 510 bytes into a region of size between 509 and 1019 [-Wformat-truncation=]
 2450 |         snprintf(buffer, sizeof(buffer), "%s\\%s", path, menu->frame->title);
      |                                               ^~

The code is taking care of checking properly the string passed to the buffer,
so there is no issue, the change is just to make the compiler happy.
src/menu.c