summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-11-14 16:38:06 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-11-14 16:38:06 +0000
commit25332f76055a9eb159f1fba44f09303d13c8873b (patch)
tree288fbd2f24689ef08ff8c2f27d7b6a67f4a1e998 /sbin
parentf666a47e32dcc24a5167ba5b788b8c12bfc8e89f (diff)
Use %d instead of %2d for better matching. From Mike Neuman. Fixes PR#2848.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/policy.c8
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;