diff lwlib/lw_stack.c @ 86:00ddfdc1e1e3

Fixed wrong size in lw_alloc() for lw_stack_create()
author lost@l-w.ca
date Wed, 22 Jun 2011 18:32:46 -0600
parents 7317fbe024af
children
line wrap: on
line diff
--- a/lwlib/lw_stack.c	Wed May 25 21:59:58 2011 -0600
+++ b/lwlib/lw_stack.c	Wed Jun 22 18:32:46 2011 -0600
@@ -30,7 +30,7 @@
 {
 	lw_stack_t S;
 	
-	S = lw_alloc(sizeof(lw_stack_t));
+	S = lw_alloc(sizeof(struct lw_stack_priv));
 	S -> head = NULL;
 	S -> freefn = freefn;
 	return S;