summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-10 22:08:53 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-10 22:08:53 +0000
commit540d3d49b22fafdbdc9fa2e30eff572f71144b3a (patch)
treeb8bbc7a3a5897653e4cd5f91d95b7800715859be /lib
parent1704a004042629b856e7eb01d7ff3448843068a5 (diff)
downloadpacman-540d3d49b22fafdbdc9fa2e30eff572f71144b3a.tar.xz
code cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index f508b47b..5f8d3c8a 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -510,8 +510,7 @@ int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **
for(l = trans->packages; l; l = l->next) {
pmsyncpkg_t *s = l->data;
if(!strcmp(s->pkg->name, miss->target)) {
- pmpkg_t *q = pkg_new(NULL, NULL);
- STRNCPY(q->name, miss->depend.name, PKG_NAME_LEN);
+ pmpkg_t *q = pkg_new(miss->depend.name, NULL);
if(s->type == PM_SYNC_TYPE_REPLACE) {
/* append to the replaces list */
s->data = pm_list_add(s->data, q);