diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 6d24a27062..fd18c7813f 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.181 2010/08/10 09:51:47 marka Exp $ */ +/* $Id: nsupdate.c,v 1.182 2010/08/10 23:48:19 tbox Exp $ */ /*! \file */ @@ -490,14 +490,14 @@ parse_hmac(dns_name_t **hmac, const char *hmacstr, size_t len) { static int basenamelen(const char *file) { - int len = strlen(file); + int len = strlen(file); - if (len > 1 && file[len - 1] == '.') - len -= 1; - else if (len > 8 && strcmp(file + len - 8, ".private") == 0) - len -= 8; - else if (len > 4 && strcmp(file + len - 4, ".key") == 0) - len -= 4; + if (len > 1 && file[len - 1] == '.') + len -= 1; + else if (len > 8 && strcmp(file + len - 8, ".private") == 0) + len -= 8; + else if (len > 4 && strcmp(file + len - 4, ".key") == 0) + len -= 4; return (len); } diff --git a/lib/isc/entropy.c b/lib/isc/entropy.c index ea7c7ce794..da9e81fb31 100644 --- a/lib/isc/entropy.c +++ b/lib/isc/entropy.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2007, 2009, 2010 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: entropy.c,v 1.21 2010/08/10 09:32:06 marka Exp $ */ +/* $Id: entropy.c,v 1.22 2010/08/10 23:48:19 tbox Exp $ */ /*! \file * \brief