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
2dd1b3b6
Commit
2dd1b3b6
authored
Feb 17, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Reserve a place in buffer for NULL terminator.
parent
78f38a74
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 @
2dd1b3b6
...
@@ -2290,7 +2290,7 @@ void WCMD_type (WCHAR *command) {
...
@@ -2290,7 +2290,7 @@ void WCMD_type (WCHAR *command) {
static
const
WCHAR
fmt
[]
=
{
'\n'
,
'%'
,
's'
,
'\n'
,
'\n'
,
'\0'
};
static
const
WCHAR
fmt
[]
=
{
'\n'
,
'%'
,
's'
,
'\n'
,
'\n'
,
'\0'
};
WCMD_output
(
fmt
,
thisArg
);
WCMD_output
(
fmt
,
thisArg
);
}
}
while
(
WCMD_ReadFile
(
h
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
&
count
,
NULL
))
{
while
(
WCMD_ReadFile
(
h
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
)
-
1
,
&
count
,
NULL
))
{
if
(
count
==
0
)
break
;
/* ReadFile reports success on EOF! */
if
(
count
==
0
)
break
;
/* ReadFile reports success on EOF! */
buffer
[
count
]
=
0
;
buffer
[
count
]
=
0
;
WCMD_output_asis
(
buffer
);
WCMD_output_asis
(
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