From: Volker Lendecke Date: Fri, 27 Jun 2008 09:22:23 +0000 (+0200) Subject: Fix two IBM checker warnings X-Git-Tag: samba-3.3.0pre1~728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5222b8db3fb692e5071bfd1b41849a8eb0a17995;p=thirdparty%2Fsamba.git Fix two IBM checker warnings Steve, please check! Thanks, Volker --- diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index c42375b5743..ea254b6047c 100644 --- a/source/client/mount.cifs.c +++ b/source/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; */