summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-09 13:41:08 -0500
committerDan McGee <dan@archlinux.org>2011-06-09 14:16:55 -0500
commite826c143d3e9d21485f72c5490b2a907c936024e (patch)
treeca08e8327d7431d8ce97e6a3420def97a4f57620 /src/pacman/conf.c
parent9d6568da0f55fb05ea5c28e06efb51046fd270bf (diff)
Kill all remaining 'PATH_MAX + 1' usages
The few remaining instances were utilized for buffers in calls to snprintf() and realpath(). Both of these functions will always ensure the returned value is padded with '\0', so there is no need for the extra byte. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index b16be044..512eade0 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -512,7 +512,7 @@ static int _parseconfig(const char *file, int parse_options,
char **section, pmdb_t *db)
{
FILE *fp = NULL;
- char line[PATH_MAX+1];
+ char line[PATH_MAX];
int linenum = 0;
char *ptr;
int ret = 0;