summaryrefslogtreecommitdiff
path: root/apps/open_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/open_plugin.c')
-rw-r--r--apps/open_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c
index fad528e215..67b6f6d318 100644
--- a/apps/open_plugin.c
+++ b/apps/open_plugin.c
@@ -270,11 +270,11 @@ uint32_t open_plugin_add_path(const char *key, const char *plugin, const char *p
270 if (len > ROCK_LEN && strcasecmp(&(pos[len-ROCK_LEN]), "." ROCK_EXT) == 0) 270 if (len > ROCK_LEN && strcasecmp(&(pos[len-ROCK_LEN]), "." ROCK_EXT) == 0)
271 { 271 {
272 /* path */ 272 /* path */
273 strlcpy(open_plugin_entry.path, plugin, OPEN_PLUGIN_BUFSZ); 273 strmemccpy(open_plugin_entry.path, plugin, OPEN_PLUGIN_BUFSZ);
274 274
275 if(!parameter) 275 if(!parameter)
276 parameter = ""; 276 parameter = "";
277 strlcpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ); 277 strmemccpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ);
278 goto retnhash; 278 goto retnhash;
279 } 279 }
280 else if (len > OP_LEN && strcasecmp(&(pos[len-OP_LEN]), "." OP_EXT) == 0) 280 else if (len > OP_LEN && strcasecmp(&(pos[len-OP_LEN]), "." OP_EXT) == 0)