diff options
Diffstat (limited to 'src/cmd/grep')
-rw-r--r-- | src/cmd/grep/sub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/grep/sub.c b/src/cmd/grep/sub.c index 5ea07c09..9a4225e2 100644 --- a/src/cmd/grep/sub.c +++ b/src/cmd/grep/sub.c @@ -10,11 +10,11 @@ mal(int n) n = (n+3) & ~3; if(m < n) { if(n > Nhunk) { - v = sbrk(n); + v = malloc(n); memset(v, 0, n); return v; } - s = sbrk(Nhunk); + s = malloc(Nhunk); m = Nhunk; } v = s; |