From ab16fcf76e616dfa7cac2cb3dd909ba2a8eb2a9f Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 5 Feb 2011 13:43:35 -0800 Subject: Slightly better errno support. --- os/src/sbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/src/sbrk.c') diff --git a/os/src/sbrk.c b/os/src/sbrk.c index fcb6b7a..e831d38 100644 --- a/os/src/sbrk.c +++ b/os/src/sbrk.c @@ -25,7 +25,7 @@ void * sbrk(ptrdiff_t incr) { /* Check if this allocation would exceed the end of the ram - would probably get into the stack first however */ if (next_heap_end > stack_min) { - _impure_ptr->_errno = ENOMEM; + set_errno(ENOMEM); ret = NULL; } else { heap_end = next_heap_end; -- cgit v1.2.3