mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
The function is building strings from the directory names into an allocated buffer, but the function took time first to calculate the exact size needed for the resulting string, so the check on wstrlcat's result will never fail. As we still use wstrlcat it is not possible to overrun the buffer, we would just return a truncated string in the list instead of return no list at all but the case where it would happen is impossible. This should fix Coverity #50111 (Resource leak) which was present in the code of one of the related early return. Signed-off-by: Christophe CURIS <christophe.curis@free.fr> Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
28 KiB
28 KiB