wm: teppich

Download patch

ref: 8dd9bc62d460fdb756c2f5d865ff5addcdbf6634
parent: 873ff6ca249bc069c5d38b18902e271668ebdc30
author: mkf <mkf@cloud9p.org>
date: Tue Nov 28 07:42:55 EST 2023

llfree: fix bugs and typos

--- a/libc/llfree.c
+++ b/libc/llfree.c
@@ -1,6 +1,6 @@
 /* 
 	free all entries in a linked list,
-	can, and will be dangrous
+	can, and will be dangerous
 */
 
 #include <u.h>
@@ -18,6 +18,6 @@
 	{
 		free(p);
 		p = t;
-		t = (ll_t*)head->next;
+		t = (ll_t*)t->next;
 	}
 }