index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-06-09 13:41:08 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-09 14:16:55 -0500 |
commit | e826c143d3e9d21485f72c5490b2a907c936024e (patch) | |
tree | ca08e8327d7431d8ce97e6a3420def97a4f57620 /src | |
parent | 9d6568da0f55fb05ea5c28e06efb51046fd270bf (diff) |
-rw-r--r-- | src/pacman/conf.c | 2 | ||||
-rw-r--r-- | src/pacman/query.c | 2 |
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; diff --git a/src/pacman/query.c b/src/pacman/query.c index d1105b4a..9e81e26d 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -40,7 +40,7 @@ static char *resolve_path(const char *file) { char *str = NULL; - str = calloc(PATH_MAX + 1, sizeof(char)); + str = calloc(PATH_MAX, sizeof(char)); if(!str) { return NULL; } |