Removed now unnecessary casts from salloc to (char *). Added a cast to (char *) for the argument of sfree in the second call.