diff options
author | 2002-11-14 16:38:05 +0000 | |
---|---|---|
committer | 2002-11-14 16:38:05 +0000 | |
commit | 9b44f770e2d7611804cdd9f3d5f6705c9882600b (patch) | |
tree | 7e22fc6a6e11e9c1dffb1ad60e321497e849bb97 | |
parent | Better whitespace/newline handling, this should make broken lines and (diff) | |
download | wireguard-openbsd-9b44f770e2d7611804cdd9f3d5f6705c9882600b.tar.xz wireguard-openbsd-9b44f770e2d7611804cdd9f3d5f6705c9882600b.zip |
Use %d instead of %2d for better matching. From Mike Neuman. Fixes PR#2848.
-rw-r--r-- | sbin/isakmpd/policy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c index f43a3418cec..d8dcae5cc7d 100644 --- a/sbin/isakmpd/policy.c +++ b/sbin/isakmpd/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.56 2002/09/11 09:50:44 ho Exp $ */ +/* $OpenBSD: policy.c,v 1.57 2002/11/14 16:38:05 ho Exp $ */ /* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */ /* @@ -908,7 +908,7 @@ policy_callback (char *name) #endif default: - snprintf (remote_id_proto_num, 3, "%2d", id[1]); + snprintf (remote_id_proto_num, 3, "%d", id[1]); remote_id_proto = remote_id_proto_num; break; } @@ -1183,7 +1183,7 @@ policy_callback (char *name) #endif default: - snprintf (remote_filter_proto_num, 3, "%2d", + snprintf (remote_filter_proto_num, 3, "%d", idremote[ISAKMP_GEN_SZ + 1]); remote_filter_proto = remote_filter_proto_num; break; @@ -1475,7 +1475,7 @@ policy_callback (char *name) #endif default: - snprintf (local_filter_proto_num, 3, "%2d", + snprintf (local_filter_proto_num, 3, "%d", idlocal[ISAKMP_GEN_SZ + 1]); local_filter_proto = local_filter_proto_num; break; |