From 58a7e85534f260a49a324dd5b3f408ce1e21cd18 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 16 Feb 2006 21:02:39 +0000 Subject: - db_write: add support to write both local and sync entries - code cleanup --- lib/libalpm/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/package.c') diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index bf5585d2..91b57b0e 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -149,7 +149,7 @@ void pkg_free(pmpkg_t *pkg) static int parse_descfile(char *descfile, pmpkg_t *info, int output) { FILE* fp = NULL; - char line[PATH_MAX+1]; + char line[PATH_MAX]; char* ptr = NULL; char* key = NULL; int linenum = 0; -- cgit v1.2.3-54-g00ecf