diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-02 16:52:36 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-02 16:58:13 +0200 |
commit | 60b596665fff7c110c6b12da192f5712fb145028 (patch) | |
tree | fa276f47afef1cf8d1226c56f82a40cd30b8e820 /i18npool/source/isolang | |
parent | a312d8a0a20add8cb6aecda4141e3cc299c1ffbc (diff) |
warn on \0 embedded in string literals, after all
Seeing 791f27683311e487947b0464a0cb132b19fd0e12 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.
Diffstat (limited to 'i18npool/source/isolang')
0 files changed, 0 insertions, 0 deletions