[PATCH 1/7] harness: Use destination strncpy() expression for sizeof() argument
authorGuillem Jover <guillem@hadrons.org>
Fri, 8 Feb 2019 23:25:38 +0000 (00:25 +0100)
committerGuillem Jover <guillem@debian.org>
Tue, 26 Feb 2019 04:26:21 +0000 (04:26 +0000)
commit510097a3618c4dca20ffaa084f7b664e1949fe3b
tree5b860c95b81f7e43797cc4337bbf0b7f81d056d0
parent1370e32dc1250d53c9bb95878a83e3e686f58095
[PATCH 1/7] harness: Use destination strncpy() expression for sizeof() argument

Even though this is the same size, as the sizeof() is derived from the
source expression, recent gcc versions will emit a warning, which is
turned into an error by -Werror:

  error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression
    as the source; did you mean to use the size of the destination?
    [-Werror=sizeof-pointer-memaccess]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0001-harness-Use-destination-strncpy-expression-for-sizeo.patch
harness/cases/19.t
harness/cases/21.t