Re: [PATCH] Fix variable-sized c strings

2014-02-24 Thread Samuel Thibault
Justus Winter, le Fri 21 Feb 2014 23:12:03 +0100, a écrit : > Previously, the terminating zero of variable-sized c strings was only > included when copying the message if the length of the string was not > a multiple of four. mig_strncpy returns the length of the string > excluding the terminating

Re: [PATCH] Fix variable-sized c strings

2014-02-24 Thread Justus Winter
Quoting Samuel Thibault (2014-02-22 16:54:28) > Justus Winter, le Fri 21 Feb 2014 23:12:03 +0100, a écrit : > > Previously, the terminating zero of variable-sized c strings was only > > included when copying the message if the length of the string was not > > a multiple of four. mig_strncpy return

Re: [PATCH] Fix variable-sized c strings

2014-02-22 Thread Samuel Thibault
Justus Winter, le Fri 21 Feb 2014 23:12:03 +0100, a écrit : > Previously, the terminating zero of variable-sized c strings was only > included when copying the message if the length of the string was not > a multiple of four. mig_strncpy returns the length of the string > excluding the terminating

[PATCH] Fix variable-sized c strings

2014-02-21 Thread Justus Winter
Previously, the terminating zero of variable-sized c strings was only included when copying the message if the length of the string was not a multiple of four. mig_strncpy returns the length of the string excluding the terminating zero. Fix this by properly accounting for the byte for the termina