Replaced deprecated functions in main.c

I replaced bzero() and bcopy() in main.c with memset() and memcpy().  bzero() and bcopy() are deprecated.