aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/timeutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/timeutil.c')
-rw-r--r--calendar/timeutil.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/calendar/timeutil.c b/calendar/timeutil.c
index 7ddc0e04d4..e6b54b19e1 100644
--- a/calendar/timeutil.c
+++ b/calendar/timeutil.c
@@ -40,7 +40,6 @@ time_from_isodate (char *str)
t -= timezone
#endif
;
-
return t;
}
@@ -91,11 +90,11 @@ format_simple_hour (int hour, int use_am_pm)
*/
if (use_am_pm)
- g_snprintf (buf, sizeof(buf), "%d%s",
+ sprintf (buf, "%d%s",
(hour == 0) ? 12 : (hour > 12) ? (hour - 12) : hour,
(hour < 12) ? _("am") : _("pm"));
else
- g_snprintf (buf, sizeof(buf), "%02d%s", hour, _("h"));
+ sprintf (buf, "%02d%s", hour, _("h"));
return buf;