Commit b639c9be authored by Romain Francoise's avatar Romain Francoise
Browse files

(init_buffer): Rename `rc' to `len' for clarity.

parent 136b3a73
2005-10-12 Romain Francoise <romain@orebokech.com>
* buffer.c (init_buffer): Rename `rc' to `len' for clarity.
2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
   
* xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
......
...@@ -5114,7 +5114,7 @@ init_buffer () ...@@ -5114,7 +5114,7 @@ init_buffer ()
char *pwd; char *pwd;
struct stat dotstat, pwdstat; struct stat dotstat, pwdstat;
Lisp_Object temp; Lisp_Object temp;
int rc; int len;
#ifdef USE_MMAP_FOR_BUFFERS #ifdef USE_MMAP_FOR_BUFFERS
{ {
...@@ -5141,13 +5141,13 @@ init_buffer () ...@@ -5141,13 +5141,13 @@ init_buffer ()
#ifndef VMS #ifndef VMS
/* Maybe this should really use some standard subroutine /* Maybe this should really use some standard subroutine
whose definition is filename syntax dependent. */ whose definition is filename syntax dependent. */
rc = strlen (pwd); len = strlen (pwd);
if (!(IS_DIRECTORY_SEP (pwd[rc - 1]))) if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
{ {
/* Grow buffer to add directory separator and '\0'. */ /* Grow buffer to add directory separator and '\0'. */
pwd = (char *) xrealloc (pwd, rc + 2); pwd = (char *) xrealloc (pwd, len + 2);
pwd[rc] = DIRECTORY_SEP; pwd[len] = DIRECTORY_SEP;
pwd[rc + 1] = '\0'; pwd[len + 1] = '\0';
} }
#endif /* not VMS */ #endif /* not VMS */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment