From 910da3cff644e617f6a9c905566e71dd0d31582a Mon Sep 17 00:00:00 2001 From: gsoares Date: Thu, 6 Apr 2017 12:20:48 +0000 Subject: [PATCH] fix format string found by clang -Wformat-security OK deraadt millert --- usr.sbin/iscsid/log.c | 4 ++-- usr.sbin/relayd/ca.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/iscsid/log.c b/usr.sbin/iscsid/log.c index 1cee87235d2..e94decd627a 100644 --- a/usr.sbin/iscsid/log.c +++ b/usr.sbin/iscsid/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.9 2017/03/21 12:06:55 bluhm Exp $ */ +/* $OpenBSD: log.c,v 1.10 2017/04/06 12:20:48 gsoares Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -162,5 +162,5 @@ void fatalx(const char *emsg) { errno = 0; - fatal(emsg); + fatal("%s", emsg); } diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c index 9adb4e725a3..45bd5f3224b 100644 --- a/usr.sbin/relayd/ca.c +++ b/usr.sbin/relayd/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.23 2016/09/28 15:03:03 reyk Exp $ */ +/* $OpenBSD: ca.c,v 1.24 2017/04/06 12:20:48 gsoares Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -491,5 +491,5 @@ ca_engine_init(struct relayd *x_env) fail: ssl_error(__func__, errstr); - fatalx(errstr); + fatalx("%s", errstr); } -- 2.20.1