From 34dc60a74fe0157412a8bbda015ed995ac08c589 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 27 Jun 2008 11:22:23 +0200 Subject: Fix two IBM checker warnings Steve, please check! Thanks, Volker (This used to be commit 5222b8db3fb692e5071bfd1b41849a8eb0a17995) --- source3/client/mount.cifs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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; */ -- cgit