Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b639c9be
Commit
b639c9be
authored
Oct 12, 2005
by
Romain Francoise
Browse files
(init_buffer): Rename `rc' to `len' for clarity.
parent
136b3a73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/ChangeLog
src/ChangeLog
+4
-0
src/buffer.c
src/buffer.c
+6
-6
No files found.
src/ChangeLog
View file @
b639c9be
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
...
...
src/buffer.c
View file @
b639c9be
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment