Skip to content
Snippets Groups Projects
Commit ccfe7887 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 4003fd80
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment