WMaker: fix dangerous code in file scanning for wAdvancedInputDialog (Coverity #50172)
commitbec027258431c1f6d32dafe9f49f57017ba380ff
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 May 2014 19:46:45 +0000 (20 21:46 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 May 2014 20:29:57 +0000 (20 21:29 +0100)
treeecd4e69c725594d880f67f9d9289134da6a6d7f5
parent32c8dc04ce40c72b19f11c90fddd2bd0329d9305
WMaker: fix dangerous code in file scanning for wAdvancedInputDialog (Coverity #50172)

As pointer by Coverity, the function wstrappend may move the string in
memory (because that's what realloc does if it can't expand the allocated
buffer in-place), so it is important to use the returned address and not
assume the old pointer is still valid.

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