aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
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 ae2a584e506..e8a45f42342 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5130,7 +5130,7 @@ init_buffer ()
5130 char *pwd; 5130 char *pwd;
5131 struct stat dotstat, pwdstat; 5131 struct stat dotstat, pwdstat;
5132 Lisp_Object temp; 5132 Lisp_Object temp;
5133 int rc; 5133 int len;
5134 5134
5135#ifdef USE_MMAP_FOR_BUFFERS 5135#ifdef USE_MMAP_FOR_BUFFERS
5136 { 5136 {
@@ -5157,13 +5157,13 @@ init_buffer ()
5157#ifndef VMS 5157#ifndef VMS
5158 /* Maybe this should really use some standard subroutine 5158 /* Maybe this should really use some standard subroutine
5159 whose definition is filename syntax dependent. */ 5159 whose definition is filename syntax dependent. */
5160 rc = strlen (pwd); 5160 len = strlen (pwd);
5161 if (!(IS_DIRECTORY_SEP (pwd[rc - 1]))) 5161 if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
5162 { 5162 {
5163 /* Grow buffer to add directory separator and '\0'. */ 5163 /* Grow buffer to add directory separator and '\0'. */
5164 pwd = (char *) xrealloc (pwd, rc + 2); 5164 pwd = (char *) xrealloc (pwd, len + 2);
5165 pwd[rc] = DIRECTORY_SEP; 5165 pwd[len] = DIRECTORY_SEP;
5166 pwd[rc + 1] = '\0'; 5166 pwd[len + 1] = '\0';
5167 } 5167 }
5168#endif /* not VMS */ 5168#endif /* not VMS */
5169 5169