diff options
Diffstat (limited to 'usr/src/lib/libmail/common/substr.c')
-rw-r--r-- | usr/src/lib/libmail/common/substr.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/usr/src/lib/libmail/common/substr.c b/usr/src/lib/libmail/common/substr.c index e2589974fa..97ad4e90bf 100644 --- a/usr/src/lib/libmail/common/substr.c +++ b/usr/src/lib/libmail/common/substr.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" @@ -51,7 +48,8 @@ substr(char *string1, char *string2) /*LINTED*/ len2 = (int)strlen(string2); for (i = 0; i < len1 - len2 + 1; i++) { - for (j = 0; j < len2 && string1[i+j] == string2[j]; j++); + for (j = 0; j < len2 && string1[i+j] == string2[j]; j++) + continue; if (j == len2) return (i); } |