diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-10-23 10:54:53 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-10-23 10:54:53 +0000 |
commit | f4a94ebeccb2aaa95cfe404ed30ae7249a8637af (patch) | |
tree | fd567d6e9c8b26239f426a96016eeeee05c08f6d /usr.sbin | |
parent | aa244eede868b56796ddaebdb44c37cbce461bcb (diff) |
add missing format string
ok eric@ gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/print.c b/usr.sbin/smtpd/print.c index d9505151ac8..ba85c228fab 100644 --- a/usr.sbin/smtpd/print.c +++ b/usr.sbin/smtpd/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.3 2011/07/13 15:08:24 eric Exp $ */ +/* $OpenBSD: print.c,v 1.4 2011/10/23 10:54:52 chl Exp $ */ /* * Copyright (c) 2009,2010 Eric Faurot <eric@faurot.net> * @@ -215,7 +215,7 @@ print_rr(struct rr *rr, char *buf, size_t max) case T_AAAA: if (rr->rr_class != C_IN) goto other; - snprintf(buf, max, inet6_ntoa(rr->rr.in_aaaa.addr6)); + snprintf(buf, max, "%s", inet6_ntoa(rr->rr.in_aaaa.addr6)); break; default: other: @@ -286,7 +286,7 @@ print_rrdynamic(struct rr_dynamic *rd, char *buf, size_t max) case T_AAAA: if (rd->rd_class != C_IN) goto other; - snprintf(buf, max, inet6_ntoa(rd->rd.in_aaaa.addr6)); + snprintf(buf, max, "%s", inet6_ntoa(rd->rd.in_aaaa.addr6)); break; default: other: |