diff options
author | 2015-10-02 12:21:59 +0000 | |
---|---|---|
committer | 2015-10-02 12:21:59 +0000 | |
commit | f201c747b5e3cfb9c68bcc4d0c2f65ba734e9030 (patch) | |
tree | a612dda3d78510588c96ccefff024e168706747e | |
parent | add a comment above the rfc1948 code that mentions the rfc so it's easy to find (diff) | |
download | wireguard-openbsd-f201c747b5e3cfb9c68bcc4d0c2f65ba734e9030.tar.xz wireguard-openbsd-f201c747b5e3cfb9c68bcc4d0c2f65ba734e9030.zip |
Replace %s in the format string, with its value (macro).
-rw-r--r-- | usr.bin/sndiod/sndiod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/sndiod.c b/usr.bin/sndiod/sndiod.c index f26bd6b9a09..08f0ec95844 100644 --- a/usr.bin/sndiod/sndiod.c +++ b/usr.bin/sndiod/sndiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sndiod.c,v 1.10 2015/10/02 09:36:24 ratchov Exp $ */ +/* $OpenBSD: sndiod.c,v 1.11 2015/10/02 12:21:59 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -466,7 +466,7 @@ main(int argc, char **argv) mode, vol, mmc, dup); } getbasepath(base, sizeof(base)); - snprintf(path, SOCKPATH_MAX, "%s/%s%u", base, SOCKPATH_FILE, unit); + snprintf(path, SOCKPATH_MAX, "%s/" SOCKPATH_FILE "%u", base, unit); listen_new_un(path); if (geteuid() == 0) privdrop(); |