summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorcheloha@openbsd.org <cheloha@openbsd.org>2022-03-13 23:27:54 +0000
committerDamien Miller <djm@mindrot.org>2022-03-18 13:33:36 +1100
commitce324cf58ba2840e31afeb996935800780c8fa4b (patch)
tree9155ec03db843f696ba42c3eaf845de519a567ae /channels.c
parent2893c5e764557f48f9d6a929e224ed49c59545db (diff)
downloadopenssh-git-ce324cf58ba2840e31afeb996935800780c8fa4b.tar.gz
upstream: ssh: xstrdup(): use memcpy(3)
Copying the given string into the buffer with strlcpy(3) confers no benefit in this context because we have already determined the string's length with strlen(3) in order to allocate that buffer. Thread: https://marc.info/?l=openbsd-tech&m=164687525802691&w=2 ok dtucker@ millert@ OpenBSD-Commit-ID: f8bfc082e36e2d2dc4e1feece02fe274155ca11a
Diffstat (limited to 'channels.c')
0 files changed, 0 insertions, 0 deletions