summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-25 18:12:57 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-25 18:12:57 +0000
commitb40eb3d6627214a7e5a886f972022576799568ec (patch)
tree9158eadb70ce070919a1dac0fe8ba8521002f7f8 /firmware/include
parente0d64b95db0664bcf374dc6c52707adfac910759 (diff)
Fixed unicode buffer overflow issue (metadata parser crashed with some
mp3 files). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10324 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/rbunicode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h
index 0e12890736..66726d10b5 100644
--- a/firmware/include/rbunicode.h
+++ b/firmware/include/rbunicode.h
@@ -19,8 +19,8 @@
/* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */
unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8);
unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count);
-unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
-unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
+unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
+unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
unsigned long utf8length(const unsigned char *utf8);
const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs);