Commit 9ae0abc1 authored by Stewart Brodie's avatar Stewart Brodie

Uses new zap_gadget_string macro to ensure that it increases the buffer size...

Uses new zap_gadget_string macro to ensure that it increases the buffer size for the actionbutton gadgets if necessary.
parent 6fafca35
......@@ -126,7 +126,7 @@ extern _kernel_oserror *create_object (_kernel_swi_regs *r, TaskDescriptor *t)
sprintf (buffer[i], "%d%%",template->std_value[i]);
zap_gadget (new_template, ActionButton, Scale_ActionButton_StdValue(i), text, buffer[i]);
zap_gadget_string (new_template, ActionButton, Scale_ActionButton_StdValue(i), text, buffer[i], max_text_len);
}
zap_gadget (new_template,NumberRange,Scale_NumberRange_Scale, lower_bound, template->min_value);
zap_gadget (new_template,NumberRange,Scale_NumberRange_Scale, upper_bound, template->max_value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment