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
6d4a811c
Commit
6d4a811c
authored
Jun 21, 2006
by
Louis. Lenders
Committed by
Alexandre Julliard
Jun 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix a crash in _strdup.
parent
a1910e11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
string.c
dlls/msvcrt/string.c
+7
-3
No files found.
dlls/msvcrt/string.c
View file @
6d4a811c
...
@@ -50,9 +50,13 @@ char* msvcrt_strndup(const char* buf, unsigned int size)
...
@@ -50,9 +50,13 @@ char* msvcrt_strndup(const char* buf, unsigned int size)
*/
*/
char
*
CDECL
_strdup
(
const
char
*
str
)
char
*
CDECL
_strdup
(
const
char
*
str
)
{
{
char
*
ret
=
MSVCRT_malloc
(
strlen
(
str
)
+
1
);
if
(
str
)
if
(
ret
)
strcpy
(
ret
,
str
);
{
return
ret
;
char
*
ret
=
MSVCRT_malloc
(
strlen
(
str
)
+
1
);
if
(
ret
)
strcpy
(
ret
,
str
);
return
ret
;
}
else
return
0
;
}
}
/*********************************************************************
/*********************************************************************
...
...
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