diff options
author | Dan McGee <dan@archlinux.org> | 2008-01-12 01:27:02 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-21 19:33:32 -0600 |
commit | 927af790ee3ff1495acd2c6b33378a7ab20e0c67 (patch) | |
tree | 200a2cfdcce855f478530e018d1604237b345446 /lib/libalpm/be_files.c | |
parent | f6785dcb89e380f0f3062b4b7aa485e1cd3c5830 (diff) | |
download | pacman-927af790ee3ff1495acd2c6b33378a7ab20e0c67.tar.xz |
Convert deltas to dynamic allocation
Another elimination of a static length structure in libalpm. Should result
in a little more memory saved during execution of packages with lots of
deltas attached.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r-- | lib/libalpm/be_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 443a55de..f95c87a4 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -487,7 +487,8 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) /* DELTAS */ if(inforeq & INFRQ_DELTAS) { - snprintf(path, PATH_MAX, "%s/%s-%s/deltas", db->path, info->name, info->version); + snprintf(path, PATH_MAX, "%s/%s-%s/deltas", db->path, + info->name, info->version); if((fp = fopen(path, "r"))) { while(!feof(fp)) { fgets(line, 255, fp); |