Re: [openib-general] [PATCH] osmtest: fix node_desc.description as string usages

2006-10-28 Thread Sasha Khapyorsky
On 22:09 Sat 28 Oct , Muli Ben-Yehuda wrote: > On Sat, Oct 28, 2006 at 10:03:07PM +0200, Sasha Khapyorsky wrote: > > > > node_desc.description buffer is received from the network and should > > not be NULL-terminated. In such cases using it as regular string in > > functions like printf() lead

Re: [openib-general] [PATCH] osmtest: fix node_desc.description as string usages

2006-10-28 Thread Muli Ben-Yehuda
On Sat, Oct 28, 2006 at 10:03:07PM +0200, Sasha Khapyorsky wrote: > > node_desc.description buffer is received from the network and should > not be NULL-terminated. In such cases using it as regular string in > functions like printf() leads to segmentation faults. This patch fixes > such usages. >

[openib-general] [PATCH] osmtest: fix node_desc.description as string usages

2006-10-28 Thread Sasha Khapyorsky
node_desc.description buffer is received from the network and should not be NULL-terminated. In such cases using it as regular string in functions like printf() leads to segmentation faults. This patch fixes such usages. Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]> --- osm/osmtest/osmtest