Shaul Karl <email@example.com> writes: > How can it be? If malloc can not allocate memory it should return a NULL > pointer. How can it Seg fault? You have most likely overwritten the end of an array and overwritten malloc's accounting info, causing a segfault next time you malloc something. -- Alan Shutko <firstname.lastname@example.org> - In a variety of flavors! "Every man has his price. Mine is $3.95."