Re: use of sprintf()??
Ben Collins <[email protected]> Fri, 26 Mar 2004 14:32:45 -0500
| Newsgroups | gmane.comp.lang.prothon.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 26, 2004 at 10:10:33AM -0800, chris wrote: > Hello all - > > I read about Prothon on Slashdot and wanted to check > it out. I downloaded the code and started reading. > In ``parser_routines.c'' (line 104) I read: "char > msg[512]; sprintf(msg, "File: %s", filename);". Would > the developers consider the use of safe functions over > unsafe versions? For example, snprintf() (portable > implementation can be found here: > http://www.ijs.si/software/snprintf/). One of the TODO's is to convert them all to apr_snprintf(). -- Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/