On Sat, Aug 15, 2009 at 04:47:32PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> +static inline char *
> +grub_strncat (char *dest, const char *src, int c)
> +{
> +  char *p = dest;
> +
> +  while (*p)
> +    p++;
> +
> +  while ((*p = *src) != '\0' && c--)
> +    {
> +      p++;
> +      src++;
> +    }
> +
> +  *p = '\0';
> +
> +  return dest;
> +}

Some of them (like this one) are surprisingly big.  Did you test them
separately?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to