[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2255-gb9eec6e
Jeremy Allison
jra at samba.org
Fri Apr 25 15:29:46 GMT 2008
The branch, v3-2-test has been updated
via b9eec6e73fbcd0256d5cc507bb4434976d7133a0 (commit)
from 46614ca3eca67aee4c1ab699e85493f9832e4b37 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit b9eec6e73fbcd0256d5cc507bb4434976d7133a0
Author: Jeremy Allison <jra at samba.org>
Date: Fri Apr 25 08:29:08 2008 -0700
Remove hard coded sizes.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/client/mount.cifs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 1b67a5e..96ab4a8 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -516,7 +516,7 @@ static int parse_options(char ** optionsp, int * filesys_flags)
printf("CIFS: invalid domain name\n");
return 1; /* needs_arg; */
}
- if (strnlen(value, 65) < 65) {
+ if (strnlen(value, DOMAIN_SIZE+1) < DOMAIN_SIZE+1) {
got_domain = 1;
} else {
printf("domain name too long\n");
@@ -1194,9 +1194,9 @@ int main(int argc, char ** argv)
if (getenv("PASSWD")) {
if(mountpassword == NULL)
- mountpassword = (char *)calloc(65,1);
+ mountpassword = (char *)calloc(MOUNT_PASSWD_SIZE+1,1);
if(mountpassword) {
- strlcpy(mountpassword,getenv("PASSWD"),MOUNT_PASSWD_SIZE);
+ strlcpy(mountpassword,getenv("PASSWD"),MOUNT_PASSWD_SIZE+1);
got_password = 1;
}
} else if (getenv("PASSWD_FD")) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list