* unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
argument to get the length, don't default to the array length.
svn path=/trunk/mono/; revision=4751
+2002-05-19 Martin Baulig <martin@gnome.org>
+
+ * unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
+ argument to get the length, don't default to the array length.
+
2002-05-18 Miguel de Icaza <miguel@ximian.com>
* assembly.c (mono_assembly_setrootdir): New function used to
g_assert (mono_array_length (bytes) > byteIndex);
g_assert (mono_array_length (chars) >= (byteIndex + charCount));
- if (!(len = (mono_array_length (chars) - charIndex) * 2))
+ if (!(len = (charCount - charIndex) * 2))
return 0;
src = mono_array_addr (chars, guint16, charIndex);