summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2022-11-26 23:50:04 +0000
committerLeah Rowe <leah@libreboot.org>2022-11-26 23:50:04 +0000
commit55a951a718e93e29df26f4ebf0eda336dedf9684 (patch)
treee6d528e27c375c79b3bc90f26a612bb14c91a3ed /util/nvmutil/nvmutil.c
parent0108615f3729408b72c42db02df0e467a132a05b (diff)
util/nvmutil: fix off by one bug
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 517604f1..ad9e24e4 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -358,7 +358,7 @@ cmd_copy(void)
gbe + (part << 12), SIZE_4KB);
gbeFileModified = 1;
- nvmPartModified[part] = 1;
+ nvmPartModified[part ^ 1] = 1;
}
}