wmaker: Do not allocate memory for a short lived string in 'selectSpecification'
commitbd4abc53043de8ff3256ebaf478c8012417dd8d1
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 10 Nov 2013 16:41:09 +0000 (10 17:41 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:04 +0000 (30 18:11 +0000)
tree92a0dba9232f8530ead16a02933d18d7f662155a
parent8d7db5d7447e0f7170438c54005d0dca7f854765
wmaker: Do not allocate memory for a short lived string in 'selectSpecification'

It is not only not very efficient, but in present case it also participates
in memory fragmentation.

This patch replaces this with a stack allocated buffer with a buffer which
is way too large.

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