From 8892bb3625a1f91f121fd98763a82c2cb0c0f67a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 19 Feb 2012 01:19:48 +0100 Subject: Remove all usages of bzero() and bcopy() The bzero() and bcopy() functions are deprecated and were removed from the POSIX standard in IEEE Std. 1003.1-2008. Remove all usages of bzero()/bcopy() and replace them by appropriate memset()/memmove() calls. Signed-off-by: Lukas Fleischer --- src/calendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calendar.c') diff --git a/src/calendar.c b/src/calendar.c index c369ef0..584dfc8 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -547,7 +547,7 @@ draw_weekly_view (struct window *cwin, struct date *current_day, custom_remove_attr (cwin->p, attr); /* Draw slices indicating appointment times. */ - bzero (slices, DAYSLICESNO * sizeof *slices); + memset (slices, 0, DAYSLICESNO * sizeof *slices); if (day_chk_busy_slices (date, DAYSLICESNO, slices)) { for (i = 0; i < DAYSLICESNO; i++) -- cgit v1.2.3-54-g00ecf