From 751ac5be401fcb4b633a5ea3116de2f9d7452bbb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 13 May 2024 14:02:29 +0200 Subject: Adding upstream version 0.37. Signed-off-by: Daniel Baumann --- src/pass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pass.c') diff --git a/src/pass.c b/src/pass.c index 9c730da..fc48ac1 100644 --- a/src/pass.c +++ b/src/pass.c @@ -324,7 +324,7 @@ int nwipe_random_pass( NWIPE_METHOD_SIGNATURE ) /* For the first block only, check the prng actually wrote something to the buffer */ if( z == c->device_size ) { - idx = c->device_stat.st_blksize; + idx = c->device_stat.st_blksize - 1; while( idx > 0 ) { if( b[idx] != 0 ) -- cgit v1.2.3