summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2010-01-02 13:31:46 +0000
committerTorne Wuff <torne@wolfpuppy.org.uk>2010-01-02 13:31:46 +0000
commit6e9af8bd4435fca55b91d6d794099121318972dc (patch)
treeda18a87aa4b58d8c40640e7f5c7e99c2a8c5ac9c /apps
parent7746f94496a05ba28dc8d77edf05568ad6c681d2 (diff)
downloadrockbox-6e9af8bd4435fca55b91d6d794099121318972dc.tar.gz
rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.tar.bz2
rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.zip
Add strlcat to core to match strlcpy (also add to plugin api). Some uses of strcat could probably do with being changed to this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c3
-rw-r--r--apps/plugin.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index ab5ccf5a1b..47f2465631 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -682,8 +682,9 @@ static const struct plugin_api rockbox_api = {
viewportmanager_theme_undo,
#endif
#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
- &errno
+ &errno,
#endif
+ strlcat,
};
int plugin_load(const char* plugin, const void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index c92fcef736..cf16eef94f 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -863,6 +863,7 @@ struct plugin_api {
#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
int* __errno;
#endif
+ size_t (*strlcat)(char *dst, const char *src, size_t length);
};
/* plugin header */