warn on \0 embedded in string literals, after all
Seeing 791f2768 I've changed my mind, some embedded \0 can be actually well hidden: struct foo { const char txt[3]; }; const foos[] = { { "a" }, { "bb" }}; If somebody wants an embedded \0 in a string literal, they need to say it explicitly by specifying the size.
Showing
Please
register
or
sign in
to comment