channels/rdpdr: Prevent buffer overflow found by covscan
authorOndrej Holy <oholy@redhat.com>
Fri, 17 Aug 2018 11:43:18 +0000 (13:43 +0200)
committerOndrej Holy <oholy@redhat.com>
Wed, 22 Aug 2018 11:35:43 +0000 (13:35 +0200)
commit1001807c5f2aafe63a90eb892a4e999f67ef42ac
tree5074b15a3d1a09499762325a68ab77970d3b9830
parent472576e6e0783d0c7f202aa4c4a7ce715cfb360f
channels/rdpdr: Prevent buffer overflow found by covscan

buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "irp->PathName" of size 256 bytes might leave the destination string unterminated.
buffer_size_warning: Calling strncpy with a maximum size argument of 256 bytes on destination array "irp->ExtraBuffer" of size 256 bytes might leave the destination string unterminated.
channels/rdpdr/server/rdpdr_main.c