]> Savannah Git Hosting - gnulib.git/commit
xstrndup: Improve GCC 11 allocation-deallocation checking.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 21:15:21 +0000 (23:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 21:15:21 +0000 (23:15 +0200)
commitd3c1eca926275d7138cdfd2eaebcf5de472fcdbf
tree63f5532a5d373f4422ed1fdc35027799a619aaab
parent5f7e4b01f0c3198131ae8b796c23b01c6d326752
xstrndup: Improve GCC 11 allocation-deallocation checking.

* lib/xstrndup.h: Include <stdlib.h> instead of <stddef.h>.
(xstrndup): Declare that deallocation must happen through 'free'.
ChangeLog
lib/xstrndup.h