From e687eeed24c1b3767fc62b6bc0c7bbe04f9a65da Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Fri, 3 Feb 2023 17:43:58 -0500 Subject: [PATCH] avbroot/util.py: Fix variable name typo in zero_n() This hasn't broken anything in the past because the Pixel OTA payloads haven't been using ZERO or DISCARD blocks. Signed-off-by: Andrew Gunnerson --- avbroot/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avbroot/util.py b/avbroot/util.py index d8ade89..81a0c82 100644 --- a/avbroot/util.py +++ b/avbroot/util.py @@ -142,4 +142,4 @@ def zero_n(f_out, size, buf_size=16384): while size: to_write = min(len(buf_view), size) f_out.write(buf_view[:to_write]) - size -= n + size -= to_write