diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 5fab856730..3263515bbc 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -1996,7 +1996,7 @@ int smb_FindShare(smb_vc_t *vcp, smb_user_t *uidp, if (code == 0) { clientchar_t temp[1024]; - cm_FsStringToClientString(ftemp, (int)cm_FsStrLen(ftemp), temp, 1024); + cm_FsStringToClientString(ftemp, -1, temp, 1024); cm_ClientStrPrintfN(pathName, (int)lengthof(pathName), rw ? _C("/.%S/") : _C("/%S/"), temp); *pathNamep = cm_ClientStrDup(cm_ClientStrLwr(pathName)); diff --git a/src/WINNT/afsd/smb_ioctl.c b/src/WINNT/afsd/smb_ioctl.c index adc463a525..d15585efc3 100644 --- a/src/WINNT/afsd/smb_ioctl.c +++ b/src/WINNT/afsd/smb_ioctl.c @@ -1064,8 +1064,7 @@ smb_IoctlGetSMBName(smb_ioctl_t *ioctlp, cm_user_t *userp) int cch; cch = cm_ClientStringToUtf8(uidp->unp->name, - cm_ClientStrLen(uidp->unp->name), - + -1, ioctlp->ioctl.outDatap, (SMB_IOCTL_MAXDATA - (ioctlp->ioctl.outDatap - ioctlp->ioctl.outAllocp))