fixdep: remove unneeded memcpy() in parse_dep_file()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Jan 2018 13:05:43 +0000 (22:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 18 Jan 2018 00:37:38 +0000 (09:37 +0900)
commitccfe78873c22561d3c514790094dc408e4876077
treeeb3d49fb9fd8107c9e82d34a7c9f3e82a084b526
parent4003fd80cba967e4044ebac96f13746153e87c4d
fixdep: remove unneeded memcpy() in parse_dep_file()

Each token in the depfile is copied to the temporary buffer 's' to
terminate the token with zero.  We do not need to do this any more
because the parsed buffer is now writable.  Insert '\0' directly in
the buffer without calling memcpy().

<limits.h> is no longer necessary. (It was needed for PATH_MAX).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/basic/fixdep.c