From b639c9be359e158b50835af475af4365fdcbe932 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Wed, 12 Oct 2005 10:14:41 +0000 Subject: [PATCH] (init_buffer): Rename `rc' to `len' for clarity. --- src/ChangeLog | 4 ++++ src/buffer.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index fef8efe2c12..340f8e1089f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-10-12 Romain Francoise + + * buffer.c (init_buffer): Rename `rc' to `len' for clarity. + 2005-10-12 YAMAMOTO Mitsuharu * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to 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 () char *pwd; struct stat dotstat, pwdstat; Lisp_Object temp; - int rc; + int len; #ifdef USE_MMAP_FOR_BUFFERS { @@ -5141,13 +5141,13 @@ init_buffer () #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 */ -- 2.39.5