diff options
Diffstat (limited to 'exrecover.c')
| -rw-r--r-- | exrecover.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exrecover.c b/exrecover.c index c9a45a8..ef2410b 100644 --- a/exrecover.c +++ b/exrecover.c @@ -107,6 +107,7 @@ extern int vsnprintf(char *, size_t, 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> #if !defined(HAVE_STRLCPY) || !defined(HAVE_STRLCAT) @@ -224,7 +225,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; @@ -263,7 +264,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. */ |
