This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> I think a sprintf followed by a strlen and printf is _guarenteed_ to be much > more portable than printf's return value. The overhead of the strlen is > minimal. Maybe portable, but how do you choose the length of the buffer to pass to sprintf! Ironic: we'd be trading a mostly-bogus security issue for a buffer overflow problem.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |