Re: [systemd-devel] [PATCH] nspawn: fix truncation of machine names in interface names

2014-08-02 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 29, 2014 at 03:18:58PM -0700, Michael Marineau wrote: > When deriving the network interface name from machine name strncpy was > not properly null terminating the string and the maximum string size as > returned by strlen() is actually IFNAMSIZ-1, not IFNAMSIZ. > --- > src/nspawn/nspaw

[systemd-devel] [PATCH] nspawn: fix truncation of machine names in interface names

2014-07-29 Thread Michael Marineau
When deriving the network interface name from machine name strncpy was not properly null terminating the string and the maximum string size as returned by strlen() is actually IFNAMSIZ-1, not IFNAMSIZ. --- src/nspawn/nspawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sr