util: fix possible buffer overrun in the function that create L2 menus (Coverity...
commit36ac3b33447660418f3e602fab82fae088b26b54
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 16 Jun 2014 18:15:26 +0000 (16 20:15 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 16 Jun 2014 19:00:09 +0000 (16 20:00 +0100)
treea92e9d445b3204ba91cf4da63def0550c5ad77f7
parent7c142f54d0d3c8b54407b11af1d604d6349ec7ea
util: fix possible buffer overrun in the function that create L2 menus (Coverity #50219)

As pointed by Coverity, the buffer used to store the command for the menu
has a fixed size, so a check is welcome to avoid buffer overflow.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
util/wmgenmenu.c