Update fork.c

fixing errors.