wmaker: fix possible buffer overrun with filename for Icon Chooser (Coverity #50218)
commit7542451a046535ba7ed9919dc9610a822c796904
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 29 Nov 2014 15:35:21 +0000 (29 16:35 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 29 Nov 2014 18:44:48 +0000 (29 18:44 +0000)
treefebcac81150bf354b1bc7a4eac5d4d853526fa46
parentaa8ade1ef1b884c0a338134b6ac1bd3001b8771c
wmaker: fix possible buffer overrun with filename for Icon Chooser (Coverity #50218)

As pointed by Coverity, there is a possible (yet improbable) buffer overrun
when building the list of files to be used in the Icon Chooser dialog.

Better safe than sorry, let's use the safer function to build the complete
name, and add a little message to the user in case of problem so at least
he can know something was not right.

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