emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c [lexbind]
Date: Tue, 06 Jul 2004 07:00:41 -0400

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.754.2.24 emacs/src/xdisp.c:1.754.2.25
*** emacs/src/xdisp.c:1.754.2.24        Tue Jul  6 10:17:22 2004
--- emacs/src/xdisp.c   Tue Jul  6 10:20:31 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;
  }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]