emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/editfns.c [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/editfns.c [emacs-unicode-2]
Date: Mon, 02 Aug 2004 20:24:50 -0400

Index: emacs/src/editfns.c
diff -c emacs/src/editfns.c:1.359.2.9 emacs/src/editfns.c:1.359.2.10
*** emacs/src/editfns.c:1.359.2.9       Sun Jul 11 22:08:03 2004
--- emacs/src/editfns.c Tue Aug  3 00:03:00 2004
***************
*** 3410,3415 ****
--- 3410,3416 ----
        /* Piggyback on this loop to initialize precision[N]. */
        precision[n] = -1;
      }
+   precision[nargs] = -1;
  
    CHECK_STRING (args[0]);
    /* We may have to change "%S" to "%s". */
***************
*** 3433,3443 ****
  
    /* Allocate the info and discarded tables.  */
    {
!     int nbytes = nargs * sizeof *info;
      int i;
      info = (struct info *) alloca (nbytes);
      bzero (info, nbytes);
!     for (i = 0; i < nargs; i++)
        info[i].start = -1;
      discarded = (char *) alloca (SBYTES (args[0]));
      bzero (discarded, SBYTES (args[0]));
--- 3434,3444 ----
  
    /* Allocate the info and discarded tables.  */
    {
!     int nbytes = (nargs+1) * sizeof *info;
      int i;
      info = (struct info *) alloca (nbytes);
      bzero (info, nbytes);
!     for (i = 0; i <= nargs; i++)
        info[i].start = -1;
      discarded = (char *) alloca (SBYTES (args[0]));
      bzero (discarded, SBYTES (args[0]));




reply via email to

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