#endif /* AFS_FREELANCE_CLIENT */
{
char temp[MOUNTPOINTLEN];
- osi_hyper_t thyper;
+ osi_hyper_t offset;
/* otherwise, we have to read it in */
- thyper.LowPart = thyper.HighPart = 0;
- code = cm_GetData(scp, &thyper, temp, MOUNTPOINTLEN, userp, reqp);
+ offset.LowPart = offset.HighPart = 0;
+ code = cm_GetData(scp, &offset, temp, MOUNTPOINTLEN, userp, reqp);
if (code)
return code;
return CM_ERROR_INVAL;
/* convert the terminating dot to a NUL */
- temp[thyper.LowPart - 1] = 0;
- memcpy(scp->mountPointStringp, temp, thyper.LowPart);
+ temp[scp->length.LowPart - 1] = 0;
+ memcpy(scp->mountPointStringp, temp, scp->length.LowPart);
}
return code;
#endif /* AFS_FREELANCE_CLIENT */
{
char temp[MOUNTPOINTLEN];
- osi_hyper_t thyper;
+ osi_hyper_t offset;
/* read the link data from the file server */
- thyper.LowPart = thyper.HighPart = 0;
- code = cm_GetData(linkScp, &thyper, temp, MOUNTPOINTLEN, userp, reqp);
+ offset.LowPart = offset.HighPart = 0;
+ code = cm_GetData(linkScp, &offset, temp, MOUNTPOINTLEN, userp, reqp);
if (code)
return code;
if (linkScp->length.LowPart == 0)
return CM_ERROR_INVAL;
- /* convert the terminating dot to a NUL */
- temp[thyper.LowPart - 1] = 0;
- memcpy(linkScp->mountPointStringp, temp, thyper.LowPart);
+ /* make sure we are NUL terminated */
+ temp[linkScp->length.LowPart] = 0;
+ memcpy(linkScp->mountPointStringp, temp, linkScp->length.LowPart + 1);
}
if ( !strnicmp(linkScp->mountPointStringp, "msdfs:", strlen("msdfs:")) )