]> git.ipfire.org Git - thirdparty/make.git/commit
Use strtol() instead of atoi()
authorJouke Witteveen <j.witteveen@gmail.com>
Fri, 16 Jul 2021 12:04:33 +0000 (14:04 +0200)
committerPaul Smith <psmith@gnu.org>
Sun, 28 Nov 2021 19:26:28 +0000 (14:26 -0500)
commitd9291d09b86228afd547d845460ba5b91577645f
tree997a6af98b567d6fd01b73469ef7a31cd198a283
parentf3ad5720997461cae87f45cb9d0d09cf24e0e79c
Use strtol() instead of atoi()

strtol() is part of C89 and a fallback is provided by gnulib.

* src/function.c (func_word, func_wordlist): Change atoi to strtol.
* test/scripts/functions/word: Add out-of-range verification testing.
bootstrap.conf
src/function.c
tests/scripts/functions/word