Fix a bug which allows pointer to travel one past end of array. Fix a comment typo. Signed-off-by: Adam DiCarlo <bikko@xxxxxxxxxx> Signed-off-by: James Simshaw <simshawj@xxxxxxxxxx> Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
--- ORIGINAL/lib/activate/activate.c 2006-07-14 08:36:58.000000000 -0700 +++ PATCHED/lib/activate/activate.c 2006-08-29 11:59:17.000000000 -0700 @@ -506,7 +506,7 @@ static struct type_handler *handler(stru do { if (rs->type == th->type) return th; - } while (th++ < ARRAY_END(type_handler)); + } while (++th < ARRAY_END(type_handler)); return type_handler; } --- ORIGINAL/lib/metadata/metadata.c 2006-07-26 14:28:08.000000000 -0700 +++ PATCHED/lib/metadata/metadata.c 2006-08-18 11:43:37.000000000 -0700 @@ -990,7 +1004,7 @@ enum status rd_status(struct states *s, /* * Support function for metadata format handlers. * - * Sort a an element into a list by optionally + * Sort an element into a list by optionally * using a metadata format handler helper function. */ void list_add_sorted(struct lib_context *lc,
_______________________________________________ Ataraid-list mailing list Ataraid-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/ataraid-list