From 0d66bfda75e78288bf37b8c8fe4ca68bf6127bee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:24:36 +0000 Subject: 2002-05-07 Roland McGrath * kids.c (store_open_children): Dereference pointer in isalnum call. * set.c (store_set_runs): Fix argument type. * kids.c (store_set_children): Likewise. --- libstore/kids.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libstore') diff --git a/libstore/kids.c b/libstore/kids.c index ceb80133..2bacfc4d 100644 --- a/libstore/kids.c +++ b/libstore/kids.c @@ -1,7 +1,8 @@ /* Managing sub-stores - Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. - Written by Miles Bader + Copyright (C) 1995,96,97,2001,02 Free Software Foundation, Inc. + Written by Miles Bader + This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -28,7 +29,7 @@ /* Set STORE's current children list to (a copy of) CHILDREN and NUM_CHILDREN. */ error_t store_set_children (struct store *store, - struct store *const *children, unsigned num_children) + struct store *const *children, size_t num_children) { unsigned size = num_children * sizeof (struct store_run); struct store **copy = malloc (size); @@ -174,7 +175,7 @@ store_open_children (const char *name, int flags, { const char *pfx_end = name; - while (isalnum (pfx_end)) + while (isalnum (*pfx_end)) pfx_end++; if (*pfx_end++ != ':') -- cgit v1.2.3