/[emacs]/emacs/src/buffer.c
ViewVC logotype

Diff of /emacs/src/buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.492 by rfrancoise, Sat Sep 10 20:05:02 2005 UTC revision 1.493 by rfrancoise, Wed Oct 12 10:14:41 2005 UTC
# Line 5114  init_buffer () Line 5114  init_buffer ()
5114    char *pwd;    char *pwd;
5115    struct stat dotstat, pwdstat;    struct stat dotstat, pwdstat;
5116    Lisp_Object temp;    Lisp_Object temp;
5117    int rc;    int len;
5118    
5119  #ifdef USE_MMAP_FOR_BUFFERS  #ifdef USE_MMAP_FOR_BUFFERS
5120   {   {
# Line 5141  init_buffer () Line 5141  init_buffer ()
5141  #ifndef VMS  #ifndef VMS
5142    /* Maybe this should really use some standard subroutine    /* Maybe this should really use some standard subroutine
5143       whose definition is filename syntax dependent.  */       whose definition is filename syntax dependent.  */
5144    rc = strlen (pwd);    len = strlen (pwd);
5145    if (!(IS_DIRECTORY_SEP (pwd[rc - 1])))    if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
5146      {      {
5147        /* Grow buffer to add directory separator and '\0'.  */        /* Grow buffer to add directory separator and '\0'.  */
5148        pwd = (char *) xrealloc (pwd, rc + 2);        pwd = (char *) xrealloc (pwd, len + 2);
5149        pwd[rc] = DIRECTORY_SEP;        pwd[len] = DIRECTORY_SEP;
5150        pwd[rc + 1] = '\0';        pwd[len + 1] = '\0';
5151      }      }
5152  #endif /* not VMS */  #endif /* not VMS */
5153    

Legend:
Removed from v.1.492  
changed lines
  Added in v.1.493

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26