LICENSE MIT
The ioctl-prefix-data can be accessed either via a char_t or a wchar_t.
Copy the data buffer with memcpy() and not strcpy() because we need to
copy the entire string if it happens to be Unicode.
(cherry picked from commit
eb1ff11bf14cfc64b4e224ef574d62e6e3757bc1)
}
if (prefix) {
copyPrefix = cm_GetSpace();
- StringCbCopy(copyPrefix->data, CM_UTILS_SPACESIZE, prefix->data);
+ memcpy(copyPrefix->data, prefix->data, CM_UTILS_SPACESIZE);
fidp->ioctlp->prefix = copyPrefix;
}
lock_ReleaseMutex(&fidp->mx);
cm_scache_t *scp;
afs_int32 code;
cm_req_t req;
- cm_ioctlQueryOptions_t *optionsp;
afs_uint32 flags = 0;
smb_InitReq(&req);