mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Remove forgotten os_strncpy() implementations
This was replaced with os_strlcpy() long time ago. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ca9efe113c
commit
cd6a5866eb
@ -430,22 +430,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n)
|
||||
}
|
||||
|
||||
|
||||
char * os_strncpy(char *dest, const char *src, size_t n)
|
||||
{
|
||||
char *d = dest;
|
||||
|
||||
while (n--) {
|
||||
*d = *src;
|
||||
if (*src == '\0')
|
||||
break;
|
||||
d++;
|
||||
src++;
|
||||
}
|
||||
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
||||
size_t os_strlcpy(char *dest, const char *src, size_t siz)
|
||||
{
|
||||
const char *s = src;
|
||||
|
@ -218,12 +218,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n)
|
||||
}
|
||||
|
||||
|
||||
char * os_strncpy(char *dest, const char *src, size_t n)
|
||||
{
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
||||
size_t os_strlcpy(char *dest, const char *src, size_t size)
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user