Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
01bde8ff
Commit
01bde8ff
authored
May 13, 2017
by
Matt Johnston
Browse files
reduce buf->pos if shrinking
parent
eed0e2e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
buffer.c
View file @
01bde8ff
...
...
@@ -109,6 +109,7 @@ void buf_setlen(buffer* buf, unsigned int len) {
dropbear_exit
(
"Bad buf_setlen"
);
}
buf
->
len
=
len
;
buf
->
pos
=
MIN
(
buf
->
pos
,
buf
->
len
);
}
/* Increment the length of the buffer */
...
...
Write
Preview
Supports
Markdown
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