summaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:49:31 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:49:31 -0700
commit23e0502dcc958cea4d195eb8c8a28a5c362ab69f (patch)
treea758ea1c4a6e524b45fb108afa4ebaab7c1db36e /ex.c
parent874d317334fae1ddce316f9b6f4d0ce4e434bf52 (diff)
parent9855bed0869ace4665e2776ec4d489847a0781b4 (diff)
combine sbrk spoof with heirloom fix for line numbers
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ex.c b/ex.c
index ab620c1..6d57cca 100644
--- a/ex.c
+++ b/ex.c
@@ -87,6 +87,7 @@ static char sccsid[] = "@(#)ex.c 1.37 (gritter) 8/4/05";
#include "ex_argv.h"
#include "ex_temp.h"
#include "ex_tty.h"
+#include "brk_shim.h"
#ifdef TRACE
char tttrace[] = { '/','d','e','v','/','t','t','y','x','x',0 };
@@ -527,7 +528,7 @@ argend:
* this as ed does, saving a little core, but it will probably
* not often make much difference.
*/
- fendcore = (line *) sbrk(0);
+ fendcore = (line *) shim_sbrk(0);
endcore = fendcore - 2;
#ifdef SIGTSTP