Searched refs:mbsmax (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_msgbuf.c | 385 int mbsmax; // max len of ret str in msgbuf_get_oem_string() local 426 mbsmax = oemlen * 2; in msgbuf_get_oem_string() 427 mbs = smb_msgbuf_malloc(mb, mbsmax + 1); in msgbuf_get_oem_string() 430 rlen = smb_oemtombs(mbs, oembuf, mbsmax); in msgbuf_get_oem_string() 433 if (rlen > mbsmax) in msgbuf_get_oem_string() 434 rlen = mbsmax; in msgbuf_get_oem_string() 455 size_t mbsmax; // max len of ret str in msgbuf_get_unicode_string() local 502 mbsmax = wcslen * MTS_MB_CUR_MAX; in msgbuf_get_unicode_string() 503 mbs = smb_msgbuf_malloc(mb, mbsmax + 1); in msgbuf_get_unicode_string() 506 rlen = smb_wcstombs(mbs, wcsbuf, mbsmax); in msgbuf_get_unicode_string() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_mbuf_marshaling.c | 1538 int mbsmax; in mbc_marshal_get_oem_string() local 1575 mbsmax = oemlen * 2; in mbc_marshal_get_oem_string() 1576 mbs = smb_srm_zalloc(sr, mbsmax + 1); in mbc_marshal_get_oem_string() 1578 rlen = smb_oemtombs(mbs, oembuf, mbsmax); in mbc_marshal_get_oem_string() 1583 if (rlen > mbsmax) in mbc_marshal_get_oem_string() 1584 rlen = mbsmax; in mbc_marshal_get_oem_string() 1611 size_t mbsmax; in mbc_marshal_get_unicode_string() local 1659 mbsmax = wcslen * MTS_MB_CUR_MAX; in mbc_marshal_get_unicode_string() 1660 mbs = smb_srm_zalloc(sr, mbsmax + 1); in mbc_marshal_get_unicode_string() 1662 rlen = smb_wcstombs(mbs, wcsbuf, mbsmax); in mbc_marshal_get_unicode_string() [all …]
|