From 0862de8832745220f5108dbe7177060494450d14 Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 24 Jun 2016 20:49:56 +0000 Subject: [PATCH] move a space to the correct spot --- usr.bin/doas/doas.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c index aca4a044978..84afd3f99ec 100644 --- a/usr.bin/doas/doas.c +++ b/usr.bin/doas/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.57 2016/06/19 19:29:43 martijn Exp $ */ +/* $OpenBSD: doas.c,v 1.58 2016/06/24 20:49:56 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -298,7 +298,7 @@ main(int argc, char **argv) parseconfig("/etc/doas.conf", 1); /* cmdline is used only for logging, no need to abort on truncate */ - (void) strlcpy(cmdline, argv[0], sizeof(cmdline)); + (void)strlcpy(cmdline, argv[0], sizeof(cmdline)); for (i = 1; i < argc; i++) { if (strlcat(cmdline, " ", sizeof(cmdline)) >= sizeof(cmdline)) break; @@ -308,7 +308,7 @@ main(int argc, char **argv) cmd = argv[0]; if (!permit(uid, groups, ngroups, &rule, target, cmd, - (const char**)argv + 1)) { + (const char **)argv + 1)) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed command for %s: %s", myname, cmdline); errc(1, EPERM, NULL); -- 2.20.1