Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 3b962d96..760a2fde 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -53,7 +53,7 @@ pmdb_t *db_open(char *root, char *dbpath, char *treename)
return(NULL);
}
- strncpy(db->treename, treename, sizeof(db->treename)-1);
+ strncpy(db->treename, treename, DB_TREENAME_LEN-1);
db->pkgcache = NULL;
db->grpcache = NULL;