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
f3309b68
Commit
f3309b68
authored
Apr 20, 1994
by
Richard M. Stallman
Browse files
(readline): Fix updating of p when buffer grows.
parent
c71ff001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib-src/fakemail.c
lib-src/fakemail.c
+1
-1
No files found.
lib-src/fakemail.c
View file @
f3309b68
...
...
@@ -216,7 +216,7 @@ readline (linebuffer, stream)
{
linebuffer
->
size
*=
2
;
buffer
=
((
char
*
)
xrealloc
(
buffer
,
linebuffer
->
size
));
p
+
=
buffer
-
linebuffer
->
buffer
;
p
=
buffer
+
(
p
-
linebuffer
->
buffer
)
;
end
=
buffer
+
linebuffer
->
size
;
linebuffer
->
buffer
=
buffer
;
}
...
...
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