diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2002-01-23 18:44:49 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2002-01-23 18:44:49 +0000 |
commit | d92fc2ece391aa0fcd5fcf835bceaa386c4a8aac (patch) | |
tree | 7b5f385f3af966b9cfa417124144f41dc57e27ab /sbin/isakmpd/field.c | |
parent | 8c4536a75ec67869a567c6db5c8bbf09c8a65d92 (diff) |
the last few sprintf -> snprintf
Diffstat (limited to 'sbin/isakmpd/field.c')
-rw-r--r-- | sbin/isakmpd/field.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/field.c b/sbin/isakmpd/field.c index d1476709292..4072945a57e 100644 --- a/sbin/isakmpd/field.c +++ b/sbin/isakmpd/field.c @@ -1,4 +1,4 @@ -/* $OpenBSD: field.c,v 1.9 2002/01/03 16:27:41 ho Exp $ */ +/* $OpenBSD: field.c,v 1.10 2002/01/23 18:44:47 ho Exp $ */ /* $EOM: field.c,v 1.11 2000/02/20 19:58:37 niklas Exp $ */ /* @@ -78,7 +78,7 @@ field_debug_raw (u_int8_t *buf, size_t len, struct constant_map **maps) p = retval + 2; while (len--) { - sprintf (p, "%02x", *buf++); + snprintf (p, 1 + len * 2, "%02x", *buf++); p += 2; } return retval; |