* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
#include <EUSCompat.h>
#include <stdlib.h>
-#include <malloc.h>
#include <ctype.h>
#include <sys/param.h>
#include <Xm/Xm.h>
}
}
- XtVaGetValues(pu->ep_dur_cb, XmNtextField, &text_field, 0);
+ XtVaGetValues(pu->ep_dur_cb, XmNtextField, &text_field, NULL);
XtAddCallback(text_field, XmNvalueChangedCallback, p_mark_change, pu);
XtAddCallback(pu->ep_dur_cb, XmNselectionCallback, p_mark_change, pu);
if (redisplay_mask & PROPS_REDO_EDITORS) {
- if (((Editor *) c->editor)->base_form_mgr) {
+ if (c->editor && ((Editor *) c->editor)->base_form_mgr) {
Editor *e = (Editor *) c->editor;
DSSW *dssw = &((Editor *) c->editor)->dssw;
}
- if (((ToDo *) c->todo)->base_form_mgr) {
+ if (c->todo && ((ToDo *) c->todo)->base_form_mgr) {
ToDo *t = (ToDo *)c->todo;
DSSW *dssw = &((ToDo *) c->todo)->dssw;
else if (answer == 3) {
return(False);
}
+ return(True);
}
else
return(True);
p->category_menu = widgets[0] =
XmVaCreateSimpleOptionMenu(p->base_form_mgr,
- "category_menu", label, NULL, 0, p_category_notify,
+ "category_menu", label, 0, 0, p_category_notify,
XmVaPUSHBUTTON, Pane_XmStrs[EDITOR_PANE], NULL, NULL, NULL,
XmVaPUSHBUTTON, Pane_XmStrs[DISPLAY_PANE], NULL, NULL, NULL,
XmVaPUSHBUTTON, Pane_XmStrs[GROUP_ACCESS_PANE], NULL, NULL,NULL,
val->selected = convert_boolean_str(get_char_prop(p, CP_MAILON));
val->scope = convert_time_scope_str(get_char_prop(p, CP_MAILUNIT));
val->scope_val = get_int_prop(p, CP_MAILADV);
- strcpy(pu->ep_reminders.mailto_val, get_char_prop(p, CP_MAILTO));
+ snprintf(pu->ep_reminders.mailto_val,
+ sizeof(pu->ep_reminders.mailto_val),
+ "%s",
+ get_char_prop(p, CP_MAILTO));
set_reminders_vals(&pu->ep_reminders, False);