hostname: avoid strcpy() overlap in -d flag handling
We don't need the strcpy() anyways, just use a pointer to the hostname
buffer and move it forward for hostname -d.
Sponsored by: Klara, Inc.
(cherry picked from commit 33c1e7271ac21a626829289780b88071ae46ec65)