Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Jackson
libXt
Commits
32fb9ec3
Verified
Commit
32fb9ec3
authored
Feb 05, 2020
by
Thomas E. Dickey
Browse files
_XtCalloc actually uses a Cardinal, not size_t
parent
15a6234f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Varargs.c
View file @
32fb9ec3
...
...
@@ -356,7 +356,7 @@ _XtVaToArgList(Widget widget,
if
(
max_count
==
0
)
return
;
args
=
(
ArgList
)
__XtCalloc
((
size_t
)(
max_count
*
2
),
sizeof
(
Arg
));
args
=
(
ArgList
)
__XtCalloc
((
Cardinal
)(
max_count
*
2
),
sizeof
(
Arg
));
if
(
!
args
)
return
;
...
...
@@ -492,7 +492,7 @@ _XtVaToTypedArgList(va_list var,
return
;
args
=
(
XtTypedArgList
)
__XtCalloc
((
size_t
)
max_count
,
sizeof
(
XtTypedArg
));
__XtCalloc
((
Cardinal
)
max_count
,
sizeof
(
XtTypedArg
));
if
(
!
args
)
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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