diff options
author | Len Brown <len.brown@intel.com> | 2005-08-15 16:07:26 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-15 16:07:26 -0400 |
commit | 09d92002718edf8ef284ec3726247acc83efbbe0 (patch) | |
tree | 54fe60e08833214565562ce0e9cefa21c92f95e3 /fs/cifs/cifssmb.c | |
parent | cb220c1af49644786944c549518b491d4c654030 (diff) | |
parent | 3edea4833a1efcd43e1dff082bc8001fdfe74b34 (diff) |
Merge from-linus to-akpm
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 3c628bf667a..0db0b313d71 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -2602,6 +2602,9 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon, if(name_len < PATH_MAX) { memcpy(pSMB->ResumeFileName, psrch_inf->presume_name, name_len); byte_count += name_len; + /* 14 byte parm len above enough for 2 byte null terminator */ + pSMB->ResumeFileName[name_len] = 0; + pSMB->ResumeFileName[name_len+1] = 0; } else { rc = -EINVAL; goto FNext2_err_exit; |