From 540d3d49b22fafdbdc9fa2e30eff572f71144b3a Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 10 Jan 2006 22:08:53 +0000 Subject: code cleanup --- lib/libalpm/sync.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libalpm') 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); -- cgit v1.2.3-70-g09d2