Remember to #undef __errordecl
Thanks zhasha for spotting this.
This commit is contained in:
parent
87f56f70d7
commit
6e4f53a3f5
|
@ -58,6 +58,8 @@ __errordecl(__snprintf_error, "snprintf: buffer overflow detected");
|
|||
snprintf(s, _n, fmt, ## __VA_ARGS__); \
|
||||
})
|
||||
|
||||
#undef __errordecl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -224,6 +224,8 @@ __fortify_strlcpy(char *dest, const char *src, size_t n)
|
|||
#define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n)
|
||||
#endif
|
||||
|
||||
#undef __errordecl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,6 +47,8 @@ __fortify_bzero(void *src, size_t n)
|
|||
#define bzero(src, n) __fortify_bzero(src, n)
|
||||
#endif
|
||||
|
||||
#undef __errordecl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -43,6 +43,8 @@ __fortify_recvfrom(int sockfd, void *buf, size_t n, int flags, struct sockaddr *
|
|||
#undef recvfrom
|
||||
#define recvfrom(sockfd, buf, n, flags, sa, salen) __fortify_recvfrom(sockfd, buf, n, flags, sa, salen)
|
||||
|
||||
#undef __errordecl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -43,6 +43,8 @@ __fortify_read(int fd, void *buf, size_t n)
|
|||
#undef read
|
||||
#define read(fd, buf, n) __fortify_read(fd, buf, n)
|
||||
|
||||
#undef __errordecl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue