Imported Upstream version 2.67.4
[platform/upstream/glib.git] / glib / gstrfuncs.c
index 9ee9459..b6ff60f 100644 (file)
@@ -380,6 +380,9 @@ g_strdup (const gchar *str)
  *
  * Returns: a pointer to the newly-allocated copy of the memory, or %NULL if @mem
  *  is %NULL.
+ * Deprecated: 2.68: Use g_memdup2() instead, as it accepts a #gsize argument
+ *     for @byte_size, avoiding the possibility of overflow in a #gsize → #guint
+ *     conversion
  */
 gpointer
 g_memdup (gconstpointer mem,