Re: [PATCH] kern: fix mig_strncpy

2014-02-24 Thread Samuel Thibault
Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > Previously, the function mig_strncpy would always zero-terminate the > destination string. Make mig_strncpy behave like mig_strncpy and > strncpy in the glibc. Also fix the implementation of mig_strncpy to > return the length of the wr

Re: [PATCH] kern: fix mig_strncpy

2014-02-24 Thread Justus Winter
Quoting Samuel Thibault (2014-02-22 16:53:11) > Justus Winter, le Sat 22 Feb 2014 16:17:13 +0100, a écrit : > > Quoting Samuel Thibault (2014-02-22 15:37:29) > > > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > > > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destinati

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Samuel Thibault
Justus Winter, le Sat 22 Feb 2014 16:17:13 +0100, a écrit : > Quoting Samuel Thibault (2014-02-22 15:37:29) > > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > > > string. Return length of destination string.

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Justus Winter
Quoting Samuel Thibault (2014-02-22 15:37:29) > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > > string. Return length of destination string. > > Well, that calls for some rationale :) > > I guess this is re

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Samuel Thibault
Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > string. Return length of destination string. Well, that calls for some rationale :) I guess this is related with the other, MIG change? I.e. that this modified v

[PATCH] kern: fix mig_strncpy

2014-02-22 Thread Justus Winter
Previously, the function mig_strncpy would always zero-terminate the destination string. Make mig_strncpy behave like mig_strncpy and strncpy in the glibc. Also fix the implementation of mig_strncpy to return the length of the written string to align the implementation with the declaration in inc

[PATCH] kern: fix mig_strncpy

2014-02-21 Thread Justus Winter
Previously, the function mig_strncpy would always zero-terminate the destination string. Make mig_strncpy behave like mig_strncpy and strncpy in the glibc. Also fix the implementation of mig_strncpy to return the length of the written string to align the implementation with the declaration in inc

[PATCH] kern: fix mig_strncpy

2014-02-21 Thread Justus Winter
Previously, the function mig_strncpy would always zero-terminate the destination string. Make mig_strncpy behave like mig_strncpy and strncpy in the glibc. Also fix the implementation of mig_strncpy to return the length of the written string to align the implementation with the declaration in inc