From 84be0dcd8b9edb7b22a0c3def4dad6150f88cb45 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Nov 2014 11:33:04 +0100 Subject: [PATCH] xbps-rindex: use correct argv index. --- bin/xbps-rindex/index-add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/index-add.c b/bin/xbps-rindex/index-add.c index bd04f79d..8271fd1c 100644 --- a/bin/xbps-rindex/index-add.c +++ b/bin/xbps-rindex/index-add.c @@ -53,7 +53,7 @@ index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force /* * Read the repository data or create index dictionaries otherwise. */ - if ((tmprepodir = strdup(argv[0])) == NULL) + if ((tmprepodir = strdup(argv[args])) == NULL) return ENOMEM; repodir = dirname(tmprepodir);