24 lines
		
	
	
		
			834 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			834 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From b205c653ba7b5efe685532daaf9db6c4cbd9aa26 Mon Sep 17 00:00:00 2001
 | |
| From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
 | |
| Date: Sat, 15 Aug 2020 11:45:33 +0200
 | |
| Subject: [PATCH] test/alg-yescrypt: Fix '-Wformat-overflow' with GCC 10.2 on
 | |
|  s390x.
 | |
| 
 | |
| ---
 | |
|  test/alg-yescrypt.c | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| diff --git a/test/alg-yescrypt.c b/test/alg-yescrypt.c
 | |
| index 0694079..62b4f9e 100644
 | |
| --- a/test/alg-yescrypt.c
 | |
| +++ b/test/alg-yescrypt.c
 | |
| @@ -250,7 +250,7 @@ int main(void)
 | |
|  			    {flags, (uint64_t)1 << N_log2, r, p, 0, 0, 0};
 | |
|  			setting = yescrypt_encode_params(¶ms,
 | |
|  			    (const uint8_t *)"WZaPV7LSUEKMo34.", 16 - (i & 15));
 | |
| -			if (i == 0)
 | |
| +			if (setting && i == 0)
 | |
|  				printf("'%s'\n", (char *)setting);
 | |
|  			if (!setting) {
 | |
|  				printf("%d yescrypt_encode_params() = NULL\n", i);
 |