A
Aleksandar Kuktin
(e-mail address removed) (Joe keane) writes:
That particular warning is not enabled by default so you can simply,
well, not enable it. I guess that's sort of like turning it off.
How about this:
const char foo[6] = "abcdef";
What about it? What are you asking? (gcc 4.7.2 at least doesn't warn
about it with "-Wall -Wextra".)
No NULL terminator. String six chars long is stored in a buffer six
chars long.
True - which might or might not be a problem, depending upon whether or
not the author intended that to be the case. Keith was probably well
aware of that - the question is, what was Joe's point in bringing that
up?
Apologies - I'm too trigger happy for my own good.
I thought this is part of the str* discussion in the other part of the
thread. And, in that context, I assumed Joe was asking bringing up
something along the lines strlcpy vs. non-terminated string but, again, I
confused the discussion in which this series of posts appears.