diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-06-19 23:07:12 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-06-19 23:07:12 -0400 |
commit | 5000f8ea9c3519fc4e028ab050a58b1f314b2633 (patch) | |
tree | 196bbe25b61fb071b760ba9c15c8199c57ef8e0d | |
parent | paxelf: use fstat instead of stat && open (diff) | |
download | pax-utils-5000f8ea9c3519fc4e028ab050a58b1f314b2633.tar.gz pax-utils-5000f8ea9c3519fc4e028ab050a58b1f314b2633.tar.bz2 pax-utils-5000f8ea9c3519fc4e028ab050a58b1f314b2633.zip |
scanelf: use strcpy to make coverity happy
We know ret is always 7 bytes, and pax_short_hf_flags always returns 7
bytes (including a NUL terminator), so use strcpy to keep coverity from
throwing a warning about missing NUL.
-rw-r--r-- | scanelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ static char *scanelf_file_pax(elfobj *elf, char *found_pax) *found_pax = 1; return (be_wewy_wewy_quiet ? NULL : paxflags); } - strncpy(ret, paxflags, sizeof(ret)); + strcpy(ret, paxflags); } if (be_wewy_wewy_quiet || (be_quiet && !shown)) |