Some implementations of a Schnorr signature will determine the challenge as follows:
$c=H(kG \mathbin\| X \mathbin\| m)==H(rG+cX \mathbin\| X \mathbin\| m)$, where:
$c$ is the challenge
$m$ is the message being signed
$X$ is the public key of the signer such that $X=xG$
$G$ is a well-known base point
$x$ is the private key of the signer
$r$ is the response to the challenge, calculated as $r=k-cx$
$k$ is a uniformly random nonce
However, some Schnorr signatures do not bind the public key $X$ of the signer into the challenge hash. Thus, $c=H(kG \mathbin\| m)$.
What possible attacks are prevented by including $X$ in the challenge hash?
Note that the signature could either be communicated as the pair $(c,r)$, or as the pair $(K,r)$ where $K=kG$.