diff --git a/cde/programs/dtcm/dtcm/misc.c b/cde/programs/dtcm/dtcm/misc.c index 5915488bd..805ae9429 100644 --- a/cde/programs/dtcm/dtcm/misc.c +++ b/cde/programs/dtcm/dtcm/misc.c @@ -266,7 +266,7 @@ set_time_submenu(Widget parent, XmString xmstr; int i, j, allocation_counter = 0; - char buf[4], buf2[10]; + char buf[12], buf2[24]; Widget menu, menuitem; DisplayType dt = get_int_prop(p, CP_DEFAULTDISP); int beg = get_int_prop(p, CP_DAYBEGIN); diff --git a/cde/programs/dtcm/dtcm/reminders.c b/cde/programs/dtcm/dtcm/reminders.c index e9abe9a5f..1b63d4b4f 100644 --- a/cde/programs/dtcm/dtcm/reminders.c +++ b/cde/programs/dtcm/dtcm/reminders.c @@ -247,7 +247,7 @@ r_set_bfpm_vals( sprintf(buf, "%d", seconds_to_minutes(val->scope_val)); } } else - sprintf(buf, "%d", val->scope_val); + sprintf(buf, "%ld", (long) val->scope_val); switch ( scope ) { case TIME_MINS :