summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-10-09 17:50:59 +0000
committerRoland McGrath <roland@redhat.com>1992-10-09 17:50:59 +0000
commitb3747a6bdb92c042713f0ae03ccf429e1144c8cf (patch)
tree8ef0515069fee510101a029368b9831a931d4886 /commands.c
parent112dd3508d9e1c0cbe33d047e613d77dc248b2ff (diff)
downloadgunmake-b3747a6bdb92c042713f0ae03ccf429e1144c8cf.tar.gz
Formerly commands.c.~11~
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index 21ed9d9..43f5128 100644
--- a/commands.c
+++ b/commands.c
@@ -159,15 +159,15 @@ set_file_variables (file)
len = caret_len == 0 ? 1 : caret_len;
if (caretD_len == 0)
caretD_len = 1;
- cp = caret_value = (char *) xmalloc (len);
- cDp = caretD_value = (char *) xmalloc (caretD_len);
- cFp = caretF_value = (char *) xmalloc (len);
+ cp = caret_value = (char *) alloca (len);
+ cDp = caretD_value = (char *) alloca (caretD_len);
+ cFp = caretF_value = (char *) alloca (len);
len = qmark_len == 0 ? 1 : qmark_len;
if (qmarkD_len == 0)
qmarkD_len = 1;
- qp = qmark_value = (char *) xmalloc (len);
- qDp = qmarkD_value = (char *) xmalloc (qmarkD_len);
- qFp = qmarkF_value = (char *) xmalloc (len);
+ qp = qmark_value = (char *) alloca (len);
+ qDp = qmarkD_value = (char *) alloca (qmarkD_len);
+ qFp = qmarkF_value = (char *) alloca (len);
for (d = file->deps; d != 0; d = d->next)
{