summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/snmpd/parse.y')
-rw-r--r--usr.sbin/snmpd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/parse.y b/usr.sbin/snmpd/parse.y
index efd1159c3ab..26cd6b999fb 100644
--- a/usr.sbin/snmpd/parse.y
+++ b/usr.sbin/snmpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.43 2017/01/05 13:53:10 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.44 2017/07/28 13:15:32 florian Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -273,14 +273,14 @@ main : LISTEN ON STRING {
const char *errstr;
user = usm_newuser($2, &errstr);
if (user == NULL) {
- yyerror(errstr);
+ yyerror("%s", errstr);
free($2);
YYERROR;
}
} userspecs {
const char *errstr;
if (usm_checkuser(user, &errstr) < 0) {
- yyerror(errstr);
+ yyerror("%s", errstr);
YYERROR;
}
user = NULL;