Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5cbe3a6c
Commit
5cbe3a6c
authored
Dec 13, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't write past end of buffer.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
015aae30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
editor.c
dlls/riched20/editor.c
+1
-1
No files found.
dlls/riched20/editor.c
View file @
5cbe3a6c
...
@@ -4309,7 +4309,7 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen,
...
@@ -4309,7 +4309,7 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen,
str
=
get_text
(
run
,
0
);
str
=
get_text
(
run
,
0
);
}
}
/* append '\r' to the last paragraph. */
/* append '\r' to the last paragraph. */
if
(
run
==
para_end_run
(
para_prev
(
editor_end_para
(
editor
)
)
)
&&
bEOP
)
if
(
run
==
para_end_run
(
para_prev
(
editor_end_para
(
editor
)
)
)
&&
bEOP
&&
buflen
)
{
{
*
buffer
=
'\r'
;
*
buffer
=
'\r'
;
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