Changed all strcpy, strcat and sprintf by s_strncpy, s_strncat and s_snprintf.

Changed all strcpy, strcat and sprintf by s_strncpy, s_strncat and s_snprintf. Some little extra changes.