diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-11-10 18:45:02 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-11-11 13:06:54 +0100 |
commit | d5afff85e22b38949f3e7936231c67de16e180e8 (patch) | |
tree | d946290b5242ea880351f8bea3fa54f302ed7cfb /src/debugpred.h | |
parent | 09ec02ec7f7e6913d10943148e2a898264345b07 (diff) | |
download | elfutils-d5afff85e22b38949f3e7936231c67de16e180e8.tar.gz |
ar: Fix GCC7 -Wformat-length issues.
GCC7 adds warnings for snprintf formatting into too small buffers.
Fix the two issues pointed out by the new warning. The ar header
fields are fixed length containing left-justified strings without
zero terminator. snprintf always adds a '\0' char at the end (which
we then don't copy into the ar header field) and numbers are decimal
strings of fixed 10 chars (-Wformat-length thinks formatting
them as size_t might overflow the buffer on 64bit arches).
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'src/debugpred.h')
0 files changed, 0 insertions, 0 deletions