A brown dog sniffing at the fence of a brown bull.
A dog was sniffing his food before eating it.
The dog is either sniffing at the fence or at his food.
A fence is not food.
A bowl of food and a fence are different objects for the dog to be sniffing at.