diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2011-01-19 21:18:19 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-01-19 21:18:19 +0200 |
commit | 2991181aaa026d8b1444bfaa9c4bcd82065ba5a3 (patch) | |
tree | eb6eb7d98bdda45b09e862e1f62375811fa9a6bd /net/tap-haiku.c | |
parent | dc9121210eaf34e768901ffc6992dd13062c743a (diff) | |
download | qemu-2991181aaa026d8b1444bfaa9c4bcd82065ba5a3.zip |
pci: fix device paths
Patch a6a7005d14b3c32d4864a718fb1cb19c789f58a5 generated
broken device paths. We snprintf with a length shorter
than the output, so the last character is discarded and replaced
by the null byte. Fix it up by snprintf to a buffer
which is larger by 1 byte and then memcpy the data (without
the null byte) to where we need it.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net/tap-haiku.c')
0 files changed, 0 insertions, 0 deletions