diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-05-22 12:34:33 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-05-22 12:34:33 -0400 |
commit | 19892bf0a740062cf51b84c27f53f7c0f3120b53 (patch) | |
tree | 6f166ed32a679e80e108435640f99046784006aa /src/linux/brk.c | |
parent | c5025bfabefe952507cf333ea89854d6ba612549 (diff) | |
download | musl-19892bf0a740062cf51b84c27f53f7c0f3120b53.tar.gz musl-19892bf0a740062cf51b84c27f53f7c0f3120b53.tar.bz2 musl-19892bf0a740062cf51b84c27f53f7c0f3120b53.tar.xz musl-19892bf0a740062cf51b84c27f53f7c0f3120b53.zip |
fix brk/sbrk behavior to match the real legacy functions
Diffstat (limited to 'src/linux/brk.c')
-rw-r--r-- | src/linux/brk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/brk.c b/src/linux/brk.c index 9f63c5a8..d91ee5a9 100644 --- a/src/linux/brk.c +++ b/src/linux/brk.c @@ -2,5 +2,5 @@ int brk(void *end) { - return -(syscall(SYS_brk, end) == -1); + return -(syscall(SYS_brk, end) != (unsigned long)end); } |