Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
Toolbox
DCS
Commits
6adcc543
Commit
6adcc543
authored
27 years ago
by
Stewart Brodie
Browse files
Options
Download
Email Patches
Plain Diff
Updated use of zap_gadget to avoid memory overwrite problem.
parent
bc6480e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
c/create
c/create
+2
-1
No files found.
c/create
View file @
6adcc543
...
...
@@ -138,12 +138,13 @@ extern _kernel_oserror *create_object (_kernel_swi_regs *r, TaskDescriptor *t,in
if
(
dcs_template
->
message
)
{
zap_gadget
(
template
,
Button
,
Message_Gadget
,
value
,
dcs_template
->
message
);
temp
=
1
+
string_length
(
dcs_template
->
message
);
}
else
{
/* len = maximum (len,template_length) */
temp
=
*
(
read_gadget
(
template
,
Button
,
Message_Gadget
,
max_value
));
if
(
temp
>
len
)
len
=
temp
;
}
if
(
temp
>
len
)
len
=
temp
;
zap_gadget
(
template
,
Button
,
Message_Gadget
,
max_value
,
len
);
if
((
er
=
create_from_template
(
template
,
&
new
->
window
))
!=
NULL
)
goto
error
;
...
...
This diff is collapsed.
Click to expand it.
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