Thread (8 messages) flat view 8 messages, 3 authors, 2009-07-22

Re: [PATCH] powerpc/cell: strncpy does not null terminate string

From: roel kluin <hidden>
Date: 2009-07-17 15:19:18

quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help