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
15998c2b
Commit
15998c2b
authored
Feb 02, 2010
by
Dan Kegel
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Size buffer in create_full_path() correctly.
parent
60fe4dae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
builtins.c
programs/cmd/builtins.c
+1
-1
No files found.
programs/cmd/builtins.c
View file @
15998c2b
...
@@ -319,7 +319,7 @@ static BOOL create_full_path(WCHAR* path)
...
@@ -319,7 +319,7 @@ static BOOL create_full_path(WCHAR* path)
WCHAR
*
new_path
;
WCHAR
*
new_path
;
BOOL
ret
=
TRUE
;
BOOL
ret
=
TRUE
;
new_path
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
strlenW
(
path
)
*
sizeof
(
WCHAR
))
+
1
);
new_path
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
strlenW
(
path
)
+
1
)
*
sizeof
(
WCHAR
)
);
strcpyW
(
new_path
,
path
);
strcpyW
(
new_path
,
path
);
while
((
len
=
strlenW
(
new_path
))
&&
new_path
[
len
-
1
]
==
'\\'
)
while
((
len
=
strlenW
(
new_path
))
&&
new_path
[
len
-
1
]
==
'\\'
)
...
...
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