[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c [emacs-unicode-2] |
Date: |
Tue, 29 Jun 2004 13:07:44 -0400 |
Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.843.2.15 emacs/src/xdisp.c:1.843.2.16
*** emacs/src/xdisp.c:1.843.2.15 Mon Jun 28 07:29:24 2004
--- emacs/src/xdisp.c Tue Jun 29 16:46:06 2004
***************
*** 6426,6431 ****
--- 6426,6432 ----
char *buffer;
int len;
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
+ USE_SAFE_ALLOCA;
/* Do nothing if called asynchronously. Inserting text into
a buffer may call after-change-functions and alike and
***************
*** 6442,6451 ****
msg = Fformat (3, args);
len = SBYTES (msg) + 1;
! buffer = (char *) alloca (len);
bcopy (SDATA (msg), buffer, len);
message_dolog (buffer, len - 1, 1, 0);
UNGCPRO;
}
--- 6443,6454 ----
msg = Fformat (3, args);
len = SBYTES (msg) + 1;
! SAFE_ALLOCA (buffer, char *, len);
bcopy (SDATA (msg), buffer, len);
message_dolog (buffer, len - 1, 1, 0);
+ SAFE_FREE (len);
+
UNGCPRO;
}