diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-05 13:43:35 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-05 13:43:35 -0800 |
commit | ab16fcf76e616dfa7cac2cb3dd909ba2a8eb2a9f (patch) | |
tree | 5f93ecc452d648bbd84ffeda38ee5a0247e37dcc /os | |
parent | 8361bc28f9215a07e2275f55561408d1bfca112f (diff) |
Slightly better errno support.
Diffstat (limited to 'os')
-rw-r--r-- | os/src/sbrk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |