summaryrefslogtreecommitdiff
path: root/sbin/iked/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/util.c')
-rw-r--r--sbin/iked/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/util.c b/sbin/iked/util.c
index 60f03b14f69..f63fc9aee1c 100644
--- a/sbin/iked/util.c
+++ b/sbin/iked/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.38 2020/02/13 16:27:02 tobhe Exp $ */
+/* $OpenBSD: util.c,v 1.39 2020/04/10 20:58:33 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -459,9 +459,9 @@ print_map(unsigned int type, struct iked_constmap *map)
}
void
-lc_string(char *str)
+lc_idtype(char *str)
{
- for (; *str != '\0'; str++)
+ for (; *str != '\0' && *str != '/'; str++)
*str = tolower((unsigned char)*str);
}