[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c |
Date: |
Mon, 21 Jun 2004 18:07:47 -0400 |
Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.894 emacs/src/xdisp.c:1.895
*** emacs/src/xdisp.c:1.894 Tue Jun 15 10:35:05 2004
--- emacs/src/xdisp.c Mon Jun 21 21:55:56 2004
***************
*** 6315,6320 ****
--- 6315,6321 ----
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
***************
*** 6331,6340 ****
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;
}
--- 6332,6343 ----
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;
}