[pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missin…

Etusivu
Poista viesti
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: pcre-dev
Vanhat otsikot: [pcre-dev] [Bug 594] New: pcrecpp unittest 'snprintf' missing on windows
Aihe: [pcre-dev] [Bug 594] pcrecpp 'snprintf' and 'strtoll' missing on windows
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=594




--- Comment #6 from Philip Hazel <ph10@???> 2007-09-07 16:10:26 ---
On Fri, 7 Sep 2007, Craig Silverstein wrote:

> I've done some windows development lately, and I can aver: windows has
> _snprintf and not snprintf. Don't ask me why.


OK, if that's the way it is, I'll come quietly. :-)

> I guess, as an alternate fix, we could change the code to use sprintf
> instead of snprintf; I reflexively use snprintf instead because it's
> safer.


Indeed yes. I tend to stick to sprintf (with as many checks as I can)
because I know it's C90-standard. And in fact, there's no use of
sprintf in the basic C part of PCRE - no need for it - though there is
one use in pcreposix.c, and it's used in pcregrep.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email