[Cbe-oss-dev] [PATCH] powerpc/cell: strncpy does not null terminate string

roel kluin roel.kluin at gmail.com
Sat Jul 18 01:19:15 EST 2009


>> With `sizeof(string) - 1` strncpy() will null terminate the string.
>
> No, it won't.

> See the line after the strncpy. This is still required for proper zero-termination.

You're right, sorry for the noise.

Roel


More information about the cbe-oss-dev mailing list