From: Todd C. Miller Date: Mon, 31 Oct 2016 18:54:53 +0000 (-0600) Subject: use cp instead of *cur when comparing against plugin_path X-Git-Tag: SUDO_1_8_19^2~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fdcce7faf99e0ed880e5133dc32e80e371e1367;p=sudo use cp instead of *cur when comparing against plugin_path --- diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 0eb7fe027..d6bfb2397 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -732,8 +732,8 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation, debug_return_int(-1); continue; } - if (strncmp(*cur, "plugin_path=", sizeof("plugin_path=") - 1) == 0) { - plugin_path = *cur + sizeof("plugin_path=") - 1; + if (strncmp(cp, "plugin_path=", sizeof("plugin_path=") - 1) == 0) { + plugin_path = cp + sizeof("plugin_path=") - 1; continue; } }