[PATCH] 1/6: Bug fix and comment fix

Adam DiCarlo <[email protected]>
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
Fix a bug which allows pointer to travel one past end of array. Fix a
comment typo.

Signed-off-by: Adam DiCarlo <[email protected]>
Signed-off-by: James Simshaw <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>

_______________________________________________
Ataraid-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ataraid-list
bugfix.patch (text/x-patch, 839 B)
--- 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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.