emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Romain Francoise
Subject: [Emacs-diffs] Changes to emacs/src/buffer.c
Date: Wed, 12 Oct 2005 06:14:45 -0400

Index: emacs/src/buffer.c
diff -c emacs/src/buffer.c:1.492 emacs/src/buffer.c:1.493
*** emacs/src/buffer.c:1.492    Sat Sep 10 20:05:02 2005
--- emacs/src/buffer.c  Wed Oct 12 10:14:41 2005
***************
*** 5114,5120 ****
    char *pwd;
    struct stat dotstat, pwdstat;
    Lisp_Object temp;
!   int rc;
  
  #ifdef USE_MMAP_FOR_BUFFERS
   {
--- 5114,5120 ----
    char *pwd;
    struct stat dotstat, pwdstat;
    Lisp_Object temp;
!   int len;
  
  #ifdef USE_MMAP_FOR_BUFFERS
   {
***************
*** 5141,5153 ****
  #ifndef VMS
    /* Maybe this should really use some standard subroutine
       whose definition is filename syntax dependent.  */
!   rc = strlen (pwd);
!   if (!(IS_DIRECTORY_SEP (pwd[rc - 1])))
      {
        /* Grow buffer to add directory separator and '\0'.  */
!       pwd = (char *) xrealloc (pwd, rc + 2);
!       pwd[rc] = DIRECTORY_SEP;
!       pwd[rc + 1] = '\0';
      }
  #endif /* not VMS */
  
--- 5141,5153 ----
  #ifndef VMS
    /* Maybe this should really use some standard subroutine
       whose definition is filename syntax dependent.  */
!   len = strlen (pwd);
!   if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
      {
        /* Grow buffer to add directory separator and '\0'.  */
!       pwd = (char *) xrealloc (pwd, len + 2);
!       pwd[len] = DIRECTORY_SEP;
!       pwd[len + 1] = '\0';
      }
  #endif /* not VMS */
  




reply via email to

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