Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 391463
Collapse All | Expand All

(-)a/src/ikstack.c (-1 / +2 lines)
Lines 88-96 iks_stack_alloc (ikstack *s, size_t size) Link Here
88
	if (size < MIN_ALLOC_SIZE) size = MIN_ALLOC_SIZE;
88
	if (size < MIN_ALLOC_SIZE) size = MIN_ALLOC_SIZE;
89
	if (size & ALIGN_MASK) size = ALIGN (size);
89
	if (size & ALIGN_MASK) size = ALIGN (size);
90
90
91
	size += DEFAULT_ALIGNMENT; /* to enable alignment of space */
91
	c = find_space (s, s->meta, size);
92
	c = find_space (s, s->meta, size);
92
	if (!c) return NULL;
93
	if (!c) return NULL;
93
	mem = c->data + c->used;
94
	mem = c->data + c->used;
95
	mem = (void *)ALIGN((char *)mem - (char *)0);
94
	c->used += size;
96
	c->used += size;
95
	return mem;
97
	return mem;
96
}
98
}
97
- 

Return to bug 391463