bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] kern: fix mig_strncpy


From: Justus Winter
Subject: Re: [PATCH] kern: fix mig_strncpy
Date: Sat, 22 Feb 2014 16:17:13 +0100
User-agent: alot/0.3.4

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 related with the other, MIG change?  I.e. that this
> modified version of kernel mig_strncpy depends on the fixed MIG
> behavior?

No.  It's just that the version in mach did not return anything (and
thus I believe that sending such a string from the kernel would never
have worked).

The change in semantics is to make it behave like the version in the
glibc (and like strncpy in general).

Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]