aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKaroly Lorentey2005-10-19 14:03:44 +0000
committerKaroly Lorentey2005-10-19 14:03:44 +0000
commit6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2 (patch)
treef22e60624e5ffd52bbe19fea7809c2f5cb54704d /src/buffer.c
parent734b679135207a8623dc460eb8d108befe080d46 (diff)
parent6507c4c73dad972eb4f6bc224c8c22de6cbeec97 (diff)
downloademacs-6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2.tar.gz
emacs-6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2.zip
Merged from miles@gnu.org--gnu-2005 (patch 593-595)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-593 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-594 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-595 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-425
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index fb1ff1c22e9..c173136961e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5114,7 +5114,7 @@ init_buffer ()
5114 char *pwd; 5114 char *pwd;
5115 struct stat dotstat, pwdstat; 5115 struct stat dotstat, pwdstat;
5116 Lisp_Object temp; 5116 Lisp_Object temp;
5117 int rc; 5117 int len;
5118 5118
5119#ifdef USE_MMAP_FOR_BUFFERS 5119#ifdef USE_MMAP_FOR_BUFFERS
5120 { 5120 {
@@ -5141,13 +5141,13 @@ init_buffer ()
5141#ifndef VMS 5141#ifndef VMS
5142 /* Maybe this should really use some standard subroutine 5142 /* Maybe this should really use some standard subroutine
5143 whose definition is filename syntax dependent. */ 5143 whose definition is filename syntax dependent. */
5144 rc = strlen (pwd); 5144 len = strlen (pwd);
5145 if (!(IS_DIRECTORY_SEP (pwd[rc - 1]))) 5145 if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
5146 { 5146 {
5147 /* Grow buffer to add directory separator and '\0'. */ 5147 /* Grow buffer to add directory separator and '\0'. */
5148 pwd = (char *) xrealloc (pwd, rc + 2); 5148 pwd = (char *) xrealloc (pwd, len + 2);
5149 pwd[rc] = DIRECTORY_SEP; 5149 pwd[len] = DIRECTORY_SEP;
5150 pwd[rc + 1] = '\0'; 5150 pwd[len + 1] = '\0';
5151 } 5151 }
5152#endif /* not VMS */ 5152#endif /* not VMS */
5153 5153