diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-11 19:59:26 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-05-12 13:36:35 +0200 |
commit | af6125fbcc51b2074321003c3cbd74aeb65d9b7b (patch) | |
tree | dbf4a445db1670c21d7c3d42fc90c643fb52a016 /lib/libalpm/po/bg.po | |
parent | 0d356c27c17fb62ed31327d634748f64c781dc49 (diff) | |
download | pacman-af6125fbcc51b2074321003c3cbd74aeb65d9b7b.tar.gz pacman-af6125fbcc51b2074321003c3cbd74aeb65d9b7b.tar.xz |
Fix gcc8 warnings.
Attempting to compile pacman with gcc8 results in several warnings like:
remove.c: In function ‘unlink_file.isra.4’:
remove.c:407:34: warning: ‘.pacsave.’ directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
Fix by adding checks to error out if snprintf tries to reserve a
truncated filename. Because the return values are checked, gcc delegates
the truncation response to our code instead of throwing warnings.
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/bg.po')
0 files changed, 0 insertions, 0 deletions