diff options
| author | Xin LI <delphij@FreeBSD.org> | 2015-04-08 17:52:54 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2015-04-08 17:52:54 +0000 |
| commit | 7ba7a5de74780dee4ec54bace1ec36427be1d8b8 (patch) | |
| tree | a5a1890b0b884a1d303e90c4130c3b731772abd5 /lib/dns/message.c | |
| parent | a2bc50f814b6966b412ba90221460066a8b31951 (diff) | |
Vendor import of BIND 9.9.7vendor/bind9/9.9.7
Diffstat (limited to 'lib/dns/message.c')
| -rw-r--r-- | lib/dns/message.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/dns/message.c b/lib/dns/message.c index d76eb4fb26c6..b95e48ea2641 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,8 +15,6 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id$ */ - /*! \file */ /*** @@ -3268,7 +3266,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg, ADD_STRING(target, "; NSID"); } else { ADD_STRING(target, "; OPT="); - sprintf(buf, "%u", optcode); + snprintf(buf, sizeof(buf), "%u", optcode); ADD_STRING(target, buf); } |
