core/tcp: Prevent buffer overflow found by covscan
authorOndrej Holy <oholy@redhat.com>
Fri, 17 Aug 2018 14:25:20 +0000 (16:25 +0200)
committerOndrej Holy <oholy@redhat.com>
Wed, 22 Aug 2018 12:34:02 +0000 (14:34 +0200)
commit1a413b5b4e6f74af310c153c84686e02d3834127
treec4d1696472a28a15aed9a81284bbffd4833f4e87
parent26bc52f79c2034ef432864b2b47827c1ec0b35ba
core/tcp: Prevent buffer overflow found by covscan

buffer_size_warning: Calling strncpy with a maximum size argument of 108 bytes on destination array "addr.sun_path" of size 108 bytes might leave the destination string unterminated.
libfreerdp/core/tcp.c