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
rG5129b3f90b50: makesyscalls: sprinkle some assert() on standard function calls
Branches
Unknown
Tags
Unknown