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
eb06945b
Commit
eb06945b
authored
Mar 01, 2024
by
Connor McAdams
Committed by
Alexandre Julliard
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices/tests: Fix -Warray-bounds warning on gcc 13.2.0.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
2c9f6793
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
channel.c
dlls/webservices/tests/channel.c
+4
-3
No files found.
dlls/webservices/tests/channel.c
View file @
eb06945b
...
...
@@ -1217,12 +1217,13 @@ static const char send_record_end[] = { 0x08, 0x02, 0x6e, 0x73, 0x89, 0xff, 0x01
static
BOOL
send_dict_str
(
int
sock
,
char
*
addr
,
const
char
*
str
,
int
dict_str_count
)
{
char
buf
[
512
],
dict_buf
[
256
],
body_buf
[
128
],
dict_size_buf
[
5
];
const
int
max_len
=
ARRAY_SIZE
(
dict_buf
)
-
ARRAY_SIZE
(
dict_size_buf
);
int
offset
,
dict_buf_size
,
body_buf_size
,
dict_size
;
/* Session dictionary strings. */
offset
=
write_size
(
dict_buf
,
str
len
(
str
)
);
memcpy
(
dict_buf
+
offset
,
str
,
str
len
(
str
)
);
dict_buf_size
=
str
len
(
str
)
+
offset
;
offset
=
write_size
(
dict_buf
,
str
nlen
(
str
,
max_len
)
);
memcpy
(
dict_buf
+
offset
,
str
,
str
nlen
(
str
,
max_len
)
);
dict_buf_size
=
str
nlen
(
str
,
max_len
)
+
offset
;
dict_size
=
write_size
(
dict_size_buf
,
dict_buf_size
);
...
...
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