aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <mathstuf@gmail.com>2018-10-30 21:03:22 -0400
committerGravatar sfan5 <sfan5@live.de>2018-10-31 09:20:26 +0100
commite3e1bdfb135fe3d74d20b94a8191714dc04fb782 (patch)
tree4418b4ec328ad0b5da5fd140a39a0d2d9e1a458c /player
parent84d6638907b488a1724ec33978773ef8a586dfc0 (diff)
ipc-unix: leave room for a NUL terminator
The `strncpy` function will not always place a terminating `NUL` if the source is longer than the destination buffer. Instead, let `strncpy` truncate as it normally would, but leave the last byte alone (it is zero-initialized when declared).
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions