From 51aeac33e9ab34c926dd9c3371e3d287c7dde9d3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 26 Jun 2007 19:35:00 +0000 Subject: Add fix for config parsing issue in case of another pacman 3.0.X release --- lib/libalpm/alpm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 227cd5e9..afb6226b 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -940,6 +940,7 @@ int SYMEXPORT alpm_parse_config(char *file, alpm_cb_db_register callback, const } _alpm_strtrim(key); strncpy(origkey, key, min(255, strlen(key))); + origkey[min(255, strlen(key))] = '\0'; key = _alpm_strtoupper(key); if(!strlen(section) && strcmp(key, "INCLUDE")) { RET_ERR(PM_ERR_CONF_DIRECTIVE_OUTSIDE_SECTION, -1); -- cgit v1.2.3-70-g09d2