diff options
| author | Julia Suvorova | 2020-03-18 14:48:49 +0100 |
|---|---|---|
| committer | Marcel Apfelbaum | 2020-03-21 18:13:12 +0100 |
| commit | 1d2695ef02771f8adecf6b173ad7bcd8ddbaec67 (patch) | |
| tree | 418edf0283f983ce5cceedb5088c18ebe26b904e /memory_mapping.c | |
| parent | Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-re... (diff) | |
| download | qemu-1d2695ef02771f8adecf6b173ad7bcd8ddbaec67.tar.gz qemu-1d2695ef02771f8adecf6b173ad7bcd8ddbaec67.tar.xz qemu-1d2695ef02771f8adecf6b173ad7bcd8ddbaec67.zip | |
hw/rdma/vmw/pvrdma_dev_ring: Replace strncpy with pstrcpy
ring->name is defined as 'char name[MAX_RING_NAME_SZ]'. Replace untruncated
strncpy with QEMU function.
This case prevented QEMU from compiling with --enable-sanitizers.
Signed-off-by: Julia Suvorova <jusual@redhat.com>
Message-Id: <20200318134849.237011-1-jusual@redhat.com>
Reviewed-by: Yuval Shaia <yuval.shaia.ml.gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'memory_mapping.c')
0 files changed, 0 insertions, 0 deletions
