+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
+2003-04-07 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
+ (#110087)
+
2003-04-01 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_string_chunk_insert_len.
* @p: pointer to the start of a UTF-8 encoded string.
* @max: the maximum number of bytes to examine. If @max
* is less than 0, then the string is assumed to be
- * nul-terminated.
+ * nul-terminated. If @max is 0, @p will not be examined and
+ * may be %NULL.
*
* Returns the length of the string in characters.
*
{
glong len = 0;
const gchar *start = p;
+ g_return_val_if_fail (p != NULL || max == 0, 0);
if (max < 0)
{