|
@@ -97,7 +97,7 @@ static int oms_seek(register void *cookie, __offmax_t *pos, int whence)
|
|
|
if (buf) {
|
|
|
*COOKIE->bufloc = COOKIE->buf = buf;
|
|
|
COOKIE->len = leastlen;
|
|
|
- memset(buf + COOKIE->eof, leastlen - COOKIE->eof, 0);
|
|
|
+ memset(buf + COOKIE->eof, 0, leastlen - COOKIE->eof);
|
|
|
} else {
|
|
|
|
|
|
return -1;
|
|
@@ -107,7 +107,7 @@ static int oms_seek(register void *cookie, __offmax_t *pos, int whence)
|
|
|
*pos = COOKIE->pos = --leastlen;
|
|
|
|
|
|
if (leastlen > COOKIE->eof) {
|
|
|
- memset(COOKIE->buf + COOKIE->eof, leastlen - COOKIE->eof, 0);
|
|
|
+ memset(COOKIE->buf + COOKIE->eof, 0, leastlen - COOKIE->eof);
|
|
|
*COOKIE->sizeloc = COOKIE->eof;
|
|
|
}
|
|
|
|