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 <calcurse@cryptocrack.de>
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user