From 3f65ea3cb042826f7343d80a2a1c048fba16edfa Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 9 Jun 2008 19:21:43 +0000 Subject: Bug fixes. --- plugin/plugin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin/plugin.c') diff --git a/plugin/plugin.c b/plugin/plugin.c index c38eb67..c34294a 100644 --- a/plugin/plugin.c +++ b/plugin/plugin.c @@ -310,8 +310,10 @@ plugin_init (Slapi_PBlock *pb) plugin_arguments[i] = slapi_ch_strdup (argv[i]); arg = trim (plugin_arguments[i]); - value = strchr (arg, '='); - if (value) { + value = arg + strcspn (arg, ":="); + if (!*value) { + value = NULL; + } else { *value = 0; value = trim (value + 1); } -- cgit v1.2.3