* grub-core/fs/iso9660.c: Replace strncat with memcpy.

* include/grub/misc.h: Remove strncat.
	* grub-core/lib/posix_wrap/string.h: Likewise.
This commit is contained in:
Vladimir Serbinenko 2013-10-26 12:49:51 +02:00
parent 6d1fc99ab5
commit 2a8a75855c
4 changed files with 16 additions and 36 deletions

View file

@ -104,25 +104,6 @@ grub_strcat (char *dest, const char *src)
return dest;
}
static inline char *
grub_strncat (char *dest, const char *src, int c)
{
char *p = dest;
while (*p)
p++;
while (c-- && (*p = *src) != '\0')
{
p++;
src++;
}
*p = '\0';
return dest;
}
/* Prototypes for aliases. */
#ifndef GRUB_UTIL
#ifdef __APPLE__