diff src/buffer.c @ 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 1ffe6d4d0fc4
children e93aafd2c52b 1cd4072747c6 5e2d3828e89f
line wrap: on
line diff
--- 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 */