Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 1997 10:01:57 -0600 (CST)
From:      Richard Neswold <neswold@aduxb.fnal.gov>
To:        freebsd-stable@freebsd.org
Subject:   Re: 2.1.7 update missed (at least) one
Message-ID:  <Pine.GSO.3.95.970211095926.5115A-100000@aduxb.fnal.gov>
In-Reply-To: <199702111039.VAA16231@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Feb 1997, Bruce Evans wrote:

> This can be fixed better using `sprintf(buf, "%s-%s", ostype, osrelease);'
> (modulo a buffer overrun or two :-).

You could use `sprintf(buf, "%.6s-%.5s", ostype, osrelease);' and size your
buffer appropriately.

  Rich

 ========================================================================
  Richard Neswold, Accelerator Div./Controls Dept |     neswold@fnal.gov
  Fermilab, PO Box 500, MS 347, Batavia, IL 60510 | voice (630) 840-3454
  'finger neswold@aduxb.fnal.gov' for PGP key     |   fax (630) 840-3093




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95.970211095926.5115A-100000>