HomeFreeBSD

hostname: avoid strcpy() overlap in -d flag handling

Description

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)

Details

Provenance
kevansAuthored on Sep 25 2021, 5:00 AM
Parents
rG00d0f1811b71: man: reset OPTIND before parsing args
Branches
Unknown
Tags
Unknown