summaryrefslogtreecommitdiffstats
path: root/src/pass.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-13 12:02:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-13 12:02:30 +0000
commit9acd2c86e00cbb8a1745296a47f57de9588cef57 (patch)
tree5d7d14e336fd2ded17c027e56f2d22a3ab2ece9c /src/pass.c
parentReleasing progress-linux version 0.36-1~progress7.99u1. (diff)
downloadnwipe-9acd2c86e00cbb8a1745296a47f57de9588cef57.tar.xz
nwipe-9acd2c86e00cbb8a1745296a47f57de9588cef57.zip
Merging upstream version 0.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/pass.c2
1 files changed, 1 insertions, 1 deletions
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 )