summaryrefslogtreecommitdiff
path: root/exrecover.c
diff options
context:
space:
mode:
Diffstat (limited to 'exrecover.c')
-rw-r--r--exrecover.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exrecover.c b/exrecover.c
index 17ba06f..e2fa677 100644
--- a/exrecover.c
+++ b/exrecover.c
@@ -106,6 +106,7 @@ extern int vsprintf(char *, const char *, va_list);
#include "ex.h"
#include "ex_temp.h"
#include "ex_tty.h"
+#include "brk_shim.h"
#include <dirent.h>
#include <time.h>
@@ -220,7 +221,7 @@ main(int argc, char *argv[])
/*
* Initialize as though the editor had just started.
*/
- fendcore = (line *) sbrk(0);
+ fendcore = (line *) shim_sbrk(0);
dot = zero = dol = fendcore;
one = zero + 1;
endcore = fendcore - 2;
@@ -259,7 +260,7 @@ main(int argc, char *argv[])
/*
* Allocate space for the line pointers from the temp file.
*/
- if ((char *) sbrk(H.Flines * sizeof (line)) == (char *) -1)
+ if ((char *) shim_sbrk(H.Flines * sizeof (line)) == (char *) -1)
/*
* Good grief.
*/