Re: [PATCH v2 1/2] crypto: Fix -Wstringop-truncation warnings

2018-07-08 Thread Herbert Xu
On Mon, Jun 25, 2018 at 09:45:37PM +0900, Stafford Horne wrote: > As of GCC 9.0.0 the build is reporting warnings like: > > crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: > crypto/ablkcipher.c:374:2: warning: ‘strncpy’ specified bound 64 equals > destination size [-Wstringop

Re: [PATCH v2 1/2] crypto: Fix -Wstringop-truncation warnings

2018-06-25 Thread Stafford Horne
On Mon, Jun 25, 2018 at 02:59:58PM +0200, Christophe LEROY wrote: > > > Le 25/06/2018 à 14:45, Stafford Horne a écrit : > > As of GCC 9.0.0 the build is reporting warnings like: > > > > crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: > > crypto/ablkcipher.c:374:2: warning:

Re: [PATCH v2 1/2] crypto: Fix -Wstringop-truncation warnings

2018-06-25 Thread Christophe LEROY
Le 25/06/2018 à 14:45, Stafford Horne a écrit : As of GCC 9.0.0 the build is reporting warnings like: crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: crypto/ablkcipher.c:374:2: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]

[PATCH v2 1/2] crypto: Fix -Wstringop-truncation warnings

2018-06-25 Thread Stafford Horne
As of GCC 9.0.0 the build is reporting warnings like: crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: crypto/ablkcipher.c:374:2: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: