mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-10 07:44:14 +01:00
The original code did have a few weaknesses, including: - possible buffer overflow, if the translation was too long; - possible crash, if either instance or class is NULL but not both Now the appropriate length is calculated (not counting on a margin) and the string is generated with the available elements. As a side note, the variable was renamed from 'tmp' to 'title' for clarity. This was highlighted by cppcheck (thanks to David Maciejak) and by Coverity (bug #50078). Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
43 KiB
43 KiB