diff --git a/apps/plugin.c b/apps/plugin.c index 3cdc56ceb4..20d1697d6e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -255,6 +255,7 @@ static const struct plugin_api rockbox_api = { strcmp, button_status, button_clear_queue, + strncpy, }; int plugin_load(char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index d34c32eac0..06a31ade37 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -291,6 +291,7 @@ struct plugin_api { int (*strcmp)(const char *, const char *); int (*button_status)(void); void (*button_clear_queue)(void); + char *(*strncpy)(char *dst, const char *src, size_t length); }; /* defined by the plugin loader (plugin.c) */