In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
not being literals. MFC after: 1 week
This commit is contained in:
parent
5c67a2799c
commit
5eeae9a725
@ -340,7 +340,7 @@ logger(int pri, const char *fmt, ...)
|
||||
va_start(ap, fmt);
|
||||
vasprintf(&buf, fmt, ap);
|
||||
if (syslog_open)
|
||||
syslog(pri, buf);
|
||||
syslog(pri, "%s", buf);
|
||||
else {
|
||||
switch (pri) {
|
||||
case LOG_INFO:
|
||||
@ -1174,7 +1174,7 @@ do_connect(struct ctx *ctx, const char *tty)
|
||||
buf = ra.val[0].ptr;
|
||||
if (strstr(buf[0], "+CME ERROR:") != NULL) {
|
||||
buf[0] += 12;
|
||||
errx(1, buf[0]);
|
||||
errx(1, "%s", buf[0]);
|
||||
}
|
||||
freeresp(&ra);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user