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
737bb1bb
Commit
737bb1bb
authored
Mar 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fixed copied buffer size in _ui64tow_s.
parent
a55e3d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
string.c
dlls/msvcrt/string.c
+3
-3
No files found.
dlls/msvcrt/string.c
View file @
737bb1bb
...
...
@@ -1187,7 +1187,7 @@ int CDECL MSVCRT__ui64tow_s( unsigned __int64 value, MSVCRT_wchar_t *str,
return
MSVCRT_EINVAL
;
}
memcpy
(
str
,
pos
,
buffer
-
pos
+
65
);
memcpy
(
str
,
pos
,
(
buffer
-
pos
+
65
)
*
sizeof
(
MSVCRT_wchar_t
)
);
return
0
;
}
...
...
@@ -1248,7 +1248,7 @@ int CDECL _ultoa_s(MSVCRT_ulong value, char *str, MSVCRT_size_t size, int radix)
/*********************************************************************
* _ultow_s (MSVCRT.@)
*/
int
CDECL
_ultow_s
(
MSVCRT_ulong
value
,
WCHAR
*
str
,
MSVCRT_size_t
size
,
int
radix
)
int
CDECL
_ultow_s
(
MSVCRT_ulong
value
,
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
size
,
int
radix
)
{
MSVCRT_ulong
digit
;
WCHAR
buffer
[
33
],
*
pos
;
...
...
@@ -1295,7 +1295,7 @@ int CDECL _ultow_s(MSVCRT_ulong value, WCHAR *str, MSVCRT_size_t size, int radix
return
MSVCRT_ERANGE
;
}
memcpy
(
str
,
pos
,
len
*
sizeof
(
WCHAR
));
memcpy
(
str
,
pos
,
len
*
sizeof
(
MSVCRT_wchar_t
));
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