summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-27 11:22:23 +0200
committerVolker Lendecke <vl@samba.org>2008-06-27 11:23:20 +0200
commit34dc60a74fe0157412a8bbda015ed995ac08c589 (patch)
tree7e8f0b7ea3794dd3e67447913115c479793c8d9b /source3
parent2a5dee28928d412216bfbcbba0f6bc8352ca6674 (diff)
downloadsamba-34dc60a74fe0157412a8bbda015ed995ac08c589.tar.gz
samba-34dc60a74fe0157412a8bbda015ed995ac08c589.tar.bz2
samba-34dc60a74fe0157412a8bbda015ed995ac08c589.zip
Fix two IBM checker warnings
Steve, please check! Thanks, Volker (This used to be commit 5222b8db3fb692e5071bfd1b41849a8eb0a17995)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/mount.cifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index c42375b574..ea254b6047 100644
--- a/source3/client/mount.cifs.c
+++ b/source3/client/mount.cifs.c
@@ -514,8 +514,8 @@ static int parse_options(char ** optionsp, int * filesys_flags)
printf("CIFS: UNC name too long\n");
return 1;
}
- } else if ((strncmp(data, "domain", 3) == 0)
- || (strncmp(data, "workgroup", 5) == 0)) {
+ } else if ((strncmp(data, "domain", 6) == 0)
+ || (strncmp(data, "workgroup", 9) == 0)) {
if (!value || !*value) {
printf("CIFS: invalid domain name\n");
return 1; /* needs_arg; */