Skip to content

make_aligned_titles: pass the correct buffer length

Ivan Shapovalov requested to merge intelfx/pacman:work/fix-aligned-titles into master

The third parameter to wcstombs() is the length of the output buffer (first parameter) in bytes. Take the correct sizeof() here.

This is not a problem in practice, but prevents _FORTIFY_SOURCE=3 from detecting a possible output buffer overflow (as the source buffer is bigger than the destination).

Fixes #104 (closed).

Edited by Ivan Shapovalov

Merge request reports