fix all cases of strcpy on overlapping strings.

This commit is contained in:
Denis Vlasenko
2008-07-22 20:16:55 +00:00
parent 68a192c007
commit 0f293b96dc
7 changed files with 15 additions and 5 deletions

View File

@@ -540,6 +540,7 @@ ssize_t recv_from_to(int fd, void *buf, size_t len, int flags,
char *xstrdup(const char *s) FAST_FUNC;
char *xstrndup(const char *s, int n) FAST_FUNC;
void overlapping_strcpy(char *dst, const char *src) FAST_FUNC;
char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC;
/* Guaranteed to NOT be a macro (smallest code). Saves nearly 2k on uclibc.
* But potentially slow, don't use in one-billion-times loops */