aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-10-12 23:46:01 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-10-12 23:46:01 -0700
commitf9d2a02f1c5227be17e7094a23f0aa122d3e1a41 (patch)
treed621753022645c26ddf4019159358f426a5251a8
parentecb58f42b2a3bbd8f4ca1f53bd41d9ca1f900626 (diff)
downloadabcdisk-f9d2a02f1c5227be17e7094a23f0aa122d3e1a41.tar.gz
abcdisk-f9d2a02f1c5227be17e7094a23f0aa122d3e1a41.tar.xz
abcdisk-f9d2a02f1c5227be17e7094a23f0aa122d3e1a41.zip
Makefile: fix build of abctext, use xmalloc in deinter
-rw-r--r--Makefile.in4
-rw-r--r--deinter.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 9dfaddc..b7166c2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -41,10 +41,10 @@ abcwrite$(X): abcwrite.$(O) mangle.$(O) util.$(O) formats.$(O) clib/dirent.$(O)
abcread$(X): abcread.$(O) unmangle.$(O) util.$(O) formats.$(O)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
-abctext$(X): deinter.$(O)
+abctext$(X): abctext.$(O)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
-deinter$(X): deinter.$(O)
+deinter$(X): deinter.$(O) util.$(O)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
casdecode$(X): casdecode.$(O) unmangle.$(O)
diff --git a/deinter.c b/deinter.c
index 24fc992..8491c94 100644
--- a/deinter.c
+++ b/deinter.c
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
ilsize = (argc > 3) ? atoi(argv[3]) : 16;
sectsize = (argc > 4) ? atoi(argv[4]) : 256;
- buf = malloc(sectsize * ilsize);
+ buf = xmalloc(sectsize * ilsize);
while (fread(buf, 1, sectsize * ilsize, f))
for (i = 0, j = 0; i < ilsize; i++, j = (j + ileave) % ilsize)