pacman/lib/libalpm
Eli Schwartz af6125fbcc 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>
2018-05-12 21:36:35 +10:00
..
po Initial translation preparation for pacman-5.1 2018-04-29 23:56:07 +10:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
add.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
add.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
alpm.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
alpm.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
alpm_list.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
alpm_list.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
backup.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
backup.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
base64.c base64.c: comment out unused variable 2014-01-15 15:54:56 +10:00
base64.h Do not #define _RESERVED_IDENTIFIERS 2016-09-25 18:04:57 +10:00
be_local.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
be_package.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
be_sync.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
conflict.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
conflict.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
db.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
db.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
delta.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
delta.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
deps.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
deps.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
diskspace.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
diskspace.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
dload.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
dload.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
error.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
filelist.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
filelist.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
graph.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
graph.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
group.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
group.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
handle.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
handle.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
hook.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
hook.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
ini.c run hooks during trans_commit 2015-10-18 10:59:23 +10:00
ini.h run hooks during trans_commit 2015-10-18 10:59:23 +10:00
libalpm.pc.in libalpm.pc: migrate to Requires.private 2018-04-29 21:57:17 +10:00
libarchive-compat.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
log.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
log.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
Makefile.am Allow replacing libcrypto with libnettle in pacman 2016-10-22 20:50:55 +10:00
package.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
package.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
pkghash.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
pkghash.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
rawstr.c Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
remove.c Fix gcc8 warnings. 2018-05-12 21:36:35 +10:00
remove.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
signing.c add missing newline to error message 2018-04-30 00:43:06 +10:00
signing.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
sync.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
sync.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
trans.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
trans.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util-common.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util-common.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
version.c Update coyrights for 2018 2018-03-14 13:31:31 +10:00