Index: gstrfuncs.c
===================================================================
RCS file: /cvs/gnome/glib/gstrfuncs.c,v
retrieving revision 1.54
diff -u -r1.54 gstrfuncs.c
--- gstrfuncs.c	2001/04/17 14:48:10	1.54
+++ gstrfuncs.c	2001/04/30 18:20:37
@@ -938,6 +938,10 @@
   
   g_return_val_if_fail (dest != NULL, 0);
   g_return_val_if_fail (src  != NULL, 0);
+
+  /* Check to see if we actually have to copy anything */
+  if (dest_size == 0)
+    return (strlen (src) + strlen (dest));
   
   /* Find the end of dst and adjust bytes left but don't go past end */
   while (*d != 0 && bytes_left-- != 0)
