From 3e608e7e858166a15eb929df4d66f35f5e4689c5 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 8 Nov 2006 08:14:29 +0000 Subject: * Improved mcheck output * Added minor libalpm const correctness * Mini-memory fixes --- lib/libalpm/be_files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/be_files.c') diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index f90f6979..563f3216 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -178,8 +178,8 @@ int _alpm_db_read(pmdb_t *db, unsigned int inforeq, pmpkg_t *info) { FILE *fp = NULL; struct stat buf; - char path[PATH_MAX]; - char line[512]; + char path[PATH_MAX+1]; + char line[513]; char *lang_tmp; pmlist_t *tmplist; char *foo; -- cgit v1.2.3-54-g00ecf