summaryrefslogtreecommitdiffstats
path: root/apps/misc.h
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2008-02-06 19:51:19 +0000
committerMagnus Holmgren <magnushol@gmail.com>2008-02-06 19:51:19 +0000
commit2235081dbc2c0820c09b84613d81174f98ad8382 (patch)
treea6e05aa766fbaf967892a56d78ba1d6fce0b585a /apps/misc.h
parent8a7e626ec2f8cda5da8d66df9b92746c7a51d72e (diff)
downloadrockbox-2235081dbc2c0820c09b84613d81174f98ad8382.tar.gz
rockbox-2235081dbc2c0820c09b84613d81174f98ad8382.tar.bz2
rockbox-2235081dbc2c0820c09b84613d81174f98ad8382.zip
Prevent possible buffer overflow when locating album art.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16231 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h
index 99eadc443a..289d952afb 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -122,6 +122,6 @@ bool dir_exists(const char *path);
* removes the extension of filename (if it doesn't start with a .)
* puts the result in buffer
*/
-char *strip_extension(const char *filename, char *buffer);
+char *strip_extension(char* buffer, int buffer_size, const char *filename);
#endif /* MISC_H */