summaryrefslogtreecommitdiff
path: root/usr.bin/mkimg
diff options
context:
space:
mode:
authorBenno Rice <benno@FreeBSD.org>2018-04-12 17:16:13 +0000
committerBenno Rice <benno@FreeBSD.org>2018-04-12 17:16:13 +0000
commit10e155c08a632dc3c7e27bc06002ab260aae0f5f (patch)
treef24a621017f7a1f912d37d3c460f3f2c895f89c1 /usr.bin/mkimg
parenteb607f903497ac63854762e03628c77bd1e1def1 (diff)
downloadsrc-test2-10e155c08a632dc3c7e27bc06002ab260aae0f5f.tar.gz
src-test2-10e155c08a632dc3c7e27bc06002ab260aae0f5f.zip
Notes
Diffstat (limited to 'usr.bin/mkimg')
-rw-r--r--usr.bin/mkimg/mkimg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mkimg/mkimg.c b/usr.bin/mkimg/mkimg.c
index f465cfe5e880..c5a85aa7c33d 100644
--- a/usr.bin/mkimg/mkimg.c
+++ b/usr.bin/mkimg/mkimg.c
@@ -464,10 +464,10 @@ mkimg(void)
if (expand_number(size, &bytesize) == -1)
error = errno;
if (offset != NULL) {
- if (*offset != '+') {
+ if (*offset != '+')
abs_offset = true;
+ else
offset++;
- }
if (expand_number(offset, &byteoffset) == -1)
error = errno;
}