[PATCH v2 0/2] gcc8.1: fix strncpy bounds warnings
Andy Green
andy at warmcat.com
Tue Jun 26 13:36:25 CEST 2018
These patches fix warnings blown by gcc8.1 about strncpy usage.
The first patch is the first part of v1 that got a confusing
reception the first time. But I think in the end no objection
to it.
In the second version, I follow John's suggestion and go further
refactoring the affected functions. Obviously the warning can
be fixed without all this as I did the first time.
Tested on libwebsockets.org.
Tree with these patches on latest for-jason pieces
https://warmcat.com/git/cgit/
---
Andy Green (2):
gcc8.1: fix strncpy bounds warnings
cgit_repobasename: convert to allocated result
cgit.h | 2 --
shared.c | 2 +-
ui-shared.c | 53 +++++++++++++++++++++++++++++------------------------
ui-shared.h | 3 ++-
ui-snapshot.c | 21 ++++++++++++++++++---
5 files changed, 50 insertions(+), 31 deletions(-)
--
Signature
More information about the CGit
mailing list