bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improper fixed-size buffer usage in connect_to_gserver()


From: Derek R. Price
Subject: Re: Improper fixed-size buffer usage in connect_to_gserver()
Date: Wed, 13 Jun 2001 14:32:57 -0400

Larry Jones wrote:

> Alexey Mahotkin writes:
> >
> > +    snprintf (buf, BUFSIZE, "cvs@%s", hostinfo->h_name);
>
> snprintf() isn't portable.

I switched this to simply check the length of hostinfo->h_name and error
out if necessary rather than using snprintf.  Checked in.  Thanks.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@collab.net         CollabNet ( http://collab.net )
--
In matters of style, swim with the current; In matters of principal, stand like
a rock.
                        - Thomas Jefferson






reply via email to

[Prev in Thread] Current Thread [Next in Thread]