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
b6265562
Commit
b6265562
authored
Mar 27, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't forward strncpy to ntdll.
parent
e66e9504
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
string.c
dlls/msvcrt/string.c
+13
-0
No files found.
dlls/msvcrt/msvcrt.spec
View file @
b6265562
...
...
@@ -1424,7 +1424,7 @@
@ cdecl strncat(str str long) ntdll.strncat
@ cdecl strncat_s(str long str long) MSVCRT_strncat_s
@ cdecl strncmp(str str long) MSVCRT_strncmp
@ cdecl strncpy(ptr str long)
ntdll.
strncpy
@ cdecl strncpy(ptr str long)
MSVCRT_
strncpy
@ cdecl strncpy_s(ptr long str long)
@ cdecl strnlen(str long) MSVCRT_strnlen
@ cdecl strpbrk(str str) ntdll.strpbrk
...
...
dlls/msvcrt/string.c
View file @
b6265562
...
...
@@ -572,6 +572,19 @@ int CDECL MSVCRT__strnicoll( const char* str1, const char* str2, MSVCRT_size_t c
}
/*********************************************************************
* strncpy (MSVCRT.@)
*/
char
*
__cdecl
MSVCRT_strncpy
(
char
*
dst
,
const
char
*
src
,
MSVCRT_size_t
len
)
{
MSVCRT_size_t
i
;
for
(
i
=
0
;
i
<
len
;
i
++
)
if
((
dst
[
i
]
=
src
[
i
])
==
'\0'
)
break
;
return
dst
;
}
/*********************************************************************
* strcpy_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_strcpy_s
(
char
*
dst
,
MSVCRT_size_t
elem
,
const
char
*
src
)
...
...
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