Fix a bug in sampread

上级 0e867d17
...@@ -192,7 +192,7 @@ sampread(struct inode *ip, char *dst, u32 off, u32 n) ...@@ -192,7 +192,7 @@ sampread(struct inode *ip, char *dst, u32 off, u32 n)
dst += cc; dst += cc;
} }
if (off > hdrlen) if (off >= hdrlen)
ret += readlog(dst, off-hdrlen, n); ret += readlog(dst, off-hdrlen, n);
return ret; return ret;
} }
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论