index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 20:23:50 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 20:23:50 +0000 |
commit | 22c0037a082dc2ca31b64e41a65fd5ef939ea541 (patch) | |
tree | 20744b6272fe9ee5740a016309be4bfce76e79d9 /lib/libalpm/db.c | |
parent | 57df73517fcaf13f3e576dcb6631d676a04764f5 (diff) |
-rw-r--r-- | lib/libalpm/db.c | 2 |
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; |