]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hostname: avoid strcpy() overlap in -d flag handling
authorKyle Evans <kevans@FreeBSD.org>
Sat, 25 Sep 2021 05:00:31 +0000 (00:00 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 3 Oct 2021 05:14:58 +0000 (00:14 -0500)
commit6e9b69d21955e348eeb0e7696a48048621a00520
treec115eb949253e468bddd7b6da82c08807ff2550b
parent5129b3f90b5069236ff28717a859fc9d61fe222e
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)
bin/hostname/hostname.c