summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2003-06-03 12:51:40 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2003-06-03 12:51:40 +0000
commit5f6a2902bcfd03976baf4360e5a1ea749a4d0700 (patch)
tree24420aafdef612d32c1c8988146120967c29f6ce /sbin/isakmpd/udp.c
parent1fb7088aa35b34099638abe7575434151652e4e5 (diff)
Cleanup. Use 'sizeof variable' instead of magic constants.
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r--sbin/isakmpd/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index e39d600ce8b..c8176d3d4b5 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.61 2003/05/18 20:06:14 ho Exp $ */
+/* $OpenBSD: udp.c,v 1.62 2003/06/03 12:51:39 ho Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -876,7 +876,7 @@ udp_decode_ids (struct transport *t)
strlcpy (iddst, inet_ntoa (((struct udp_transport *)t)->dst.sin_addr), 256);
#endif /* HAVE_GETNAMEINFO */
- snprintf (result, 1024, "src: %s dst: %s", idsrc, iddst);
+ snprintf (result, sizeof result, "src: %s dst: %s", idsrc, iddst);
return result;
}