Re: [libvirt] [PATCH 2/2] Introduce safewrite_str

2016-02-23 Thread Daniel P. Berrange
On Tue, Feb 23, 2016 at 01:19:38PM +, Daniel P. Berrange wrote: > On Thu, Feb 18, 2016 at 07:40:12AM -0500, John Ferlan wrote: > > > > > > On 02/12/2016 08:59 AM, Ján Tomko wrote: > > > Just like safewrite, but calls strlen first to figure out > > > the length of the string. > > > --- > > >

Re: [libvirt] [PATCH 2/2] Introduce safewrite_str

2016-02-23 Thread Daniel P. Berrange
On Thu, Feb 18, 2016 at 07:40:12AM -0500, John Ferlan wrote: > > > On 02/12/2016 08:59 AM, Ján Tomko wrote: > > Just like safewrite, but calls strlen first to figure out > > the length of the string. > > --- > > src/conf/virchrdev.c | 2 +- > > src/libvirt_private.syms | 1 + > >

Re: [libvirt] [PATCH 2/2] Introduce safewrite_str

2016-02-23 Thread Ján Tomko
On Thu, Feb 18, 2016 at 07:40:12AM -0500, John Ferlan wrote: > > > On 02/12/2016 08:59 AM, Ján Tomko wrote: > > Just like safewrite, but calls strlen first to figure out > > the length of the string. > > --- > > src/conf/virchrdev.c | 2 +- > > src/libvirt_private.syms | 1 + > >

Re: [libvirt] [PATCH 2/2] Introduce safewrite_str

2016-02-18 Thread John Ferlan
On 02/12/2016 08:59 AM, Ján Tomko wrote: > Just like safewrite, but calls strlen first to figure out > the length of the string. > --- > src/conf/virchrdev.c | 2 +- > src/libvirt_private.syms | 1 + > src/lxc/lxc_process.c | 4 ++-- > src/network/leaseshelper.c | 2 +- >

[libvirt] [PATCH 2/2] Introduce safewrite_str

2016-02-12 Thread Ján Tomko
Just like safewrite, but calls strlen first to figure out the length of the string. --- src/conf/virchrdev.c | 2 +- src/libvirt_private.syms | 1 + src/lxc/lxc_process.c | 4 ++-- src/network/leaseshelper.c | 2 +- src/openvz/openvz_conf.c | 15 ++-