Fix sscanf cipher string and avoid warning wih -fsanitize=address.