diff options
| author | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-01-02 13:31:46 +0000 |
|---|---|---|
| committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-01-02 13:31:46 +0000 |
| commit | 6e9af8bd4435fca55b91d6d794099121318972dc (patch) | |
| tree | da18a87aa4b58d8c40640e7f5c7e99c2a8c5ac9c /apps | |
| parent | 7746f94496a05ba28dc8d77edf05568ad6c681d2 (diff) | |
| download | rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.zip rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.tar.gz rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.tar.bz2 rockbox-6e9af8bd4435fca55b91d6d794099121318972dc.tar.xz | |
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.c | 3 | ||||
| -rw-r--r-- | apps/plugin.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index ab5ccf5..47f2465 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 c92fcef..cf16eef 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 */ |