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
c0f65cc9
Commit
c0f65cc9
authored
Jan 23, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Don't use strncpy.
parent
584bdb18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
winhelp.c
programs/winhlp32/winhelp.c
+1
-2
No files found.
programs/winhlp32/winhelp.c
View file @
c0f65cc9
...
...
@@ -1182,8 +1182,7 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
if
(
len
>
sizeof
(
buffer
))
len
=
sizeof
(
buffer
);
memcpy
(
buffer
,
ptr1
,
len
);
if
(
len
<
sizeof
(
buffer
))
buffer
[
len
++
]
=
':'
;
strncpy
(
&
buffer
[
len
],
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
,
sizeof
(
buffer
)
-
len
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
lstrcpynA
(
&
buffer
[
len
],
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
,
sizeof
(
buffer
)
-
len
);
TextOutA
(
hDc
,
0
,
i
*
tm
.
tmHeight
,
buffer
,
strlen
(
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