summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-18 14:55:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-18 14:55:15 +0000
commit2a57b93af794fc6e59a3e56b775a950fd863d6ca (patch)
tree136445c216f262fd2248d2f78053b89bca91ada7 /usr.sbin
parentdf6503551b0b3363d5515ce6f7e1a837d862dee8 (diff)
do not need to allocate memory for execvp arguments
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 67a76782388..d75bec349f7 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.2 2019/06/17 15:04:59 deraadt Exp $ */
+/* $Id: main.c,v 1.3 2019/06/18 14:55:14 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -681,10 +681,10 @@ proc_rsync(const char *prog, int fd, int noop)
err(EXIT_FAILURE, "pledge");
i = 0;
args[i++] = (char *)prog;
- args[i++] = strdup("-r");
- args[i++] = strdup("-l");
- args[i++] = strdup("-t");
- args[i++] = strdup("--delete");
+ args[i++] = "-r";
+ args[i++] = "-l";
+ args[i++] = "-t";
+ args[i++] = "--delete";
args[i++] = uri;
args[i++] = dst;
args[i] = NULL;