[GRASS5] snprintf and other compile errors on IRIX

Eric G. Miller egm2 at jps.net
Wed Apr 24 11:24:57 EDT 2002


On Wed, Apr 24, 2002 at 03:03:14PM +0200, Bernhard Reiter wrote:
> On Wed, Apr 24, 2002 at 12:37:58AM -0700, Eric G. Miller wrote:
> > I think I've fixed all the occurrences of snprintf that I had a hand in
> > introducing.  
> 
> If you improved the code while doing so, it is fine.
> I believe that we need to have configure handle to add a replacement
> function, if snprintf is not available for the system.

I think most are better for it.  In most cases, if it wasn't already the
case, I looked at ensuring buffers are sized correclty (i.e. use
dynamic allocation).

> This seems reasonable as snprintf is standard for quite some time.

Yes, but I see the merit of trying to keep the code based on C89/90.
At least for a couple more years.

> Even when its just a drop, I think that reducing the chance for
> buffer overflows is always a good thing.

Yea, buffer overflows are never desirable ;-)

> For everybody else: Becareful about grass checkins,
> as Glynn will create the release branch soon.

-- 
Eric G. Miller <egm2 at jps.net>



More information about the grass-dev mailing list