diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/mount.cifs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index 96ab4a8910..d1b735525e 100644 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -236,6 +236,7 @@ static int open_cred_file(char * file_name) for(length = 0;length<MOUNT_PASSWD_SIZE+1;length++) { if ((temp_val[length] == '\n') || (temp_val[length] == '\0')) { + temp_val[length] = '\0'; break; } } @@ -264,6 +265,7 @@ static int open_cred_file(char * file_name) for(length = 0;length<DOMAIN_SIZE+1;length++) { if ((temp_val[length] == '\n') || (temp_val[length] == '\0')) { + temp_val[length] = '\0'; break; } } |