copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git] / eglib / src / gstr.c
index ccf12d8f11c3cff0042a1594d4254d35b366a5e1..305f9480e26867fb19f6bcbcef8b34cb25e15df9 100644 (file)
@@ -830,11 +830,8 @@ gchar *
 g_strnfill (gsize length, gchar fill_char)
 {
        gchar *ret = g_new (gchar, length + 1);
-       int i;
 
-       for (i = 0; i < length; i++)
-               ret [i] = fill_char;
-       
+       memset (ret, fill_char, length);
        ret [length] = 0;
        return ret;
 }