]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix two IBM checker warnings
authorVolker Lendecke <vl@samba.org>
Fri, 27 Jun 2008 09:22:23 +0000 (11:22 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 27 Jun 2008 09:23:20 +0000 (11:23 +0200)
Steve, please check!

Thanks,

Volker

source/client/mount.cifs.c

index c42375b5743ebffbf6c981e40ecd94ab97668cba..ea254b6047cdfb81d8158f5607f0f2d169aeac64 100644 (file)
@@ -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; */