for (bp = cm_data.buf_allp; bp; bp=bp->allp, bcount++) {
if (!cm_FidCmp(fidp, &bp->fid) && (bp->flags & CM_BUF_DIRTY)) {
- buf_Hold(bp);
+ buf_Hold(bp);
lock_ObtainMutex(&bp->mx);
bp->cmFlags &= ~CM_BUF_CMSTORING;
bp->flags &= ~CM_BUF_DIRTY;
#endif
{
long code;
- char tname[256];
+ char tname[AFSPATHMAX];
int sysNameIndex = 0;
cm_scache_t *scp = NULL;
char *tp; /* ptr moving through input buffer */
char tc; /* temp char */
int haveComponent; /* has new component started? */
- char component[256]; /* this is the new component */
+ char component[AFSPATHMAX]; /* this is the new component */
char *cp; /* component name being assembled */
cm_scache_t *tscp; /* current location in the hierarchy */
cm_scache_t *nscp; /* next dude down */
/* List available shares */
int smb_ListShares()
{
- char sbmtpath[256];
- char pathName[256];
+ char sbmtpath[AFSPATHMAX];
+ char pathName[AFSPATHMAX];
char shareBuf[4096];
int num_shares=0;
char *this_share;
/*strcpy(shareNameList[num_shares], this_share);*/
len = GetPrivateProfileString("AFS Submounts", this_share,
NULL,
- pathName, 256,
+ pathName, AFSPATHMAX,
sbmtpath);
if (!len)
return num_shares;
smb_tid_t *tidp;
smb_user_t *uidp;
unsigned short newTid;
- char shareName[256];
+ char shareName[AFSPATHMAX];
char *sharePath;
int shareFound;
char *tp;
return;
} else if (code != 0) {
#ifndef DJGPP
- char tbuffer[256];
+ char tbuffer[AFSPATHMAX];
#endif
/* terminate silently if shutdown flag is set */
);
if (nts != STATUS_SUCCESS && ntsEx != STATUS_SUCCESS) {
- char message[256];
+ char message[AFSPATHMAX];
sprintf(message,"MsV1_0SetProcessOption failure: nts 0x%x ntsEx 0x%x",
nts, ntsEx);
OutputDebugString(message);
smb_tid_t *tidp;
smb_user_t *uidp = NULL;
unsigned short newTid;
- char shareName[256];
+ char shareName[AFSPATHMAX];
char *sharePath;
int shareFound;
char *tp;
smb_rap_share_info_1_t * shares;
USHORT cshare = 0;
char * cstrp;
- char thisShare[256];
+ char thisShare[AFSPATHMAX];
int i,j;
DWORD dw;
int nonrootShares;