Previously we would substract sizeof(struct socks_op) twice
as it's already part of csiz. While this was wrong it didn't
cause any actual problems as the buffer size is so large that
it didn't matter.
Reported by: Joshua Rogers
}
else
{
- strlcpy(buf + csiz, target_host, sizeof(buf) - sizeof(struct socks_op) - csiz);
+ strlcpy(buf + csiz, target_host, sizeof(buf) - csiz);
/*
* What we forward to the socks4a server should have the
* size of socks_op, plus the length of the userid plus