Porting to solaris

I have ported a c program to solaris.

When I run , it gives me segmentation fault error at line :-

memcpy ((char *)a_string ,(char *)0, MAX_READ ) ;

originally this was in reliant unix as :-

memcpy ( a_string , 0 , MAX_READ ) ;

Can somebody help me about this ?

Either way that line of code is garbage. My guess is that the programmer meant to use memset instead of memcpy. But that is only a guess.