diff options
Diffstat (limited to 'nandwrite.c')
-rw-r--r-- | nandwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nandwrite.c b/nandwrite.c index 70579a3..9c3fe8f 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -315,7 +315,7 @@ int main(int argc, char * const argv[]) if (ifd == STDIN_FILENO) { imglen = inputsize ? : pagelen; if (inputskip) { - errmsg("seeking stdin does not work"); + errmsg("seeking stdin not supported"); goto closeall; } } else { @@ -325,7 +325,7 @@ int main(int argc, char * const argv[]) sys_errmsg("unable to stat input image"); goto closeall; } - imglen = st.st_size; + imglen = st.st_size - inputskip; } else imglen = inputsize; |