[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] pci: fix device paths
From: |
Christoph Hellwig |
Subject: |
[Qemu-devel] Re: [PATCH] pci: fix device paths |
Date: |
Thu, 20 Jan 2011 10:41:11 +0100 |
User-agent: |
Mutt/1.3.28i |
On Wed, Jan 19, 2011 at 09:24:10PM +0200, Michael S. Tsirkin wrote:
> 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.
This fixed the boot for me.