Mercurial > emacs
changeset 66043:7e251d472f1c
(init_buffer): Rename `rc' to `len' for clarity.
author | Romain Francoise <romain@orebokech.com> |
---|---|
date | Wed, 12 Oct 2005 10:14:41 +0000 |
parents | 09f79beebaff |
children | 4270eecbdc34 |
files | src/ChangeLog src/buffer.c |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Wed Oct 12 10:10:04 2005 +0000 +++ b/src/ChangeLog Wed Oct 12 10:14:41 2005 +0000 @@ -1,3 +1,7 @@ +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> * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
--- a/src/buffer.c Wed Oct 12 10:10:04 2005 +0000 +++ b/src/buffer.c Wed Oct 12 10:14:41 2005 +0000 @@ -5114,7 +5114,7 @@ char *pwd; struct stat dotstat, pwdstat; Lisp_Object temp; - int rc; + int len; #ifdef USE_MMAP_FOR_BUFFERS { @@ -5141,13 +5141,13 @@ #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]))) + len = strlen (pwd); + if (!(IS_DIRECTORY_SEP (pwd[len - 1]))) { /* Grow buffer to add directory separator and '\0'. */ - pwd = (char *) xrealloc (pwd, rc + 2); - pwd[rc] = DIRECTORY_SEP; - pwd[rc + 1] = '\0'; + pwd = (char *) xrealloc (pwd, len + 2); + pwd[len] = DIRECTORY_SEP; + pwd[len + 1] = '\0'; } #endif /* not VMS */