1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 11:12:18 +00:00

dtcm: Resolve format warnings

This commit is contained in:
Peter Howkins 2022-02-07 05:17:03 +00:00
parent 2794ba9c44
commit bee6662b0f
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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 :