Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/conf.c2
-rw-r--r--src/pacman/query.c2
2 files changed, 2 insertions, 2 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;
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;
}