diff options
| author | sin | 2015-03-07 11:49:44 +0000 |
|---|---|---|
| committer | sin | 2015-03-10 16:38:26 +0000 |
| commit | 701d7d3303f7df0ec88bf8275c6c78d172556e30 (patch) | |
| tree | 1faa1924c014cc9a9afc56b714490c9d7868c15e /include | |
| parent | 8cb1c705b1c9d1a13d16d01f9bb22780c0528363 (diff) | |
Fix strncat() and strncpy() mappings
Thanks zhasha.
Diffstat (limited to 'include')
| -rw-r--r-- | include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index 5623ffe..6771b1d 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -170,9 +170,9 @@ __fortify_strlcpy(char *dest, const char *src, size_t n) | |||
| 170 | #undef strcpy | 170 | #undef strcpy |
| 171 | #define strcpy(dest, src) __fortify_strcpy(dest, src) | 171 | #define strcpy(dest, src) __fortify_strcpy(dest, src) |
| 172 | #undef strncat | 172 | #undef strncat |
| 173 | #define strncat(dest, src, n) __fortify_strcat(dest, src, n) | 173 | #define strncat(dest, src, n) __fortify_strncat(dest, src, n) |
| 174 | #undef strncpy | 174 | #undef strncpy |
| 175 | #define strncpy(dest, src, n) __fortify_strcpy(dest, src, n) | 175 | #define strncpy(dest, src, n) __fortify_strncpy(dest, src, n) |
| 176 | 176 | ||
| 177 | #ifdef _GNU_SOURCE | 177 | #ifdef _GNU_SOURCE |
| 178 | #undef mempcpy | 178 | #undef mempcpy |
