Buffer overflow hunt: removing strcpy, strcat, sprintf