diff options
Diffstat (limited to 'sys/netncp')
-rw-r--r-- | sys/netncp/ncp_rq.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/netncp/ncp_rq.c b/sys/netncp/ncp_rq.c index 6915bfa..b637c9a 100644 --- a/sys/netncp/ncp_rq.c +++ b/sys/netncp/ncp_rq.c @@ -151,8 +151,18 @@ ncp_rq_done(struct ncp_rq *rqp) */ static int -ncp_rq_pathstrhelp(struct mbchain *mbp, c_caddr_t src, caddr_t dst, size_t len) +ncp_rq_pathstrhelp(struct mbchain *mbp, c_caddr_t src, caddr_t dst, + size_t *srclen, size_t *dstlen) { + int len; + + if (*srclen < *dstlen) { + *dstlen = *srclen; + len = (int)*srclen; + } else { + *srclen = *dstlen; + len = (int)*dstlen; + } ncp_pathcopy(src, dst, len, mbp->mb_udata); return 0; } |