diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-22 20:16:55 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-22 20:16:55 +0000 |
| commit | 0f293b96dc6effa127ec63e11dd16221f1329126 (patch) | |
| tree | a5b7873a5ece9bef8355da8d437cf53f952c66ca /include | |
| parent | 68a192c00799fd2097bab1aec594cd27203b1ec6 (diff) | |
| download | busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.tar.gz busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.tar.bz2 busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.zip | |
fix all cases of strcpy on overlapping strings.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 684e130c9..c0b731b36 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -540,6 +540,7 @@ ssize_t recv_from_to(int fd, void *buf, size_t len, int flags, | |||
| 540 | 540 | ||
| 541 | char *xstrdup(const char *s) FAST_FUNC; | 541 | char *xstrdup(const char *s) FAST_FUNC; |
| 542 | char *xstrndup(const char *s, int n) FAST_FUNC; | 542 | char *xstrndup(const char *s, int n) FAST_FUNC; |
| 543 | void overlapping_strcpy(char *dst, const char *src) FAST_FUNC; | ||
| 543 | char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC; | 544 | char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC; |
| 544 | /* Guaranteed to NOT be a macro (smallest code). Saves nearly 2k on uclibc. | 545 | /* Guaranteed to NOT be a macro (smallest code). Saves nearly 2k on uclibc. |
| 545 | * But potentially slow, don't use in one-billion-times loops */ | 546 | * But potentially slow, don't use in one-billion-times loops */ |
