From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 3 Jun 2003 12:07:50 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] Re: printf(3) Message-ID: <20030603080750.GA13299@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20030601221932.GA631@hell.devel.altlinux.ru> <20030602031557.633fe4e1.bga@altlinux.ru> <20030602081809.GC8759@basalt.office.altlinux.org> <20030602090220.GA10996@kadath.ramax.spb.ru> <20030602094012.GD24023@solemn.turbinal.org> <20030602104921.GA13408@kadath.ramax.spb.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <20030602104921.GA13408@kadath.ramax.spb.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Jun 02, 2003 at 02:49:21PM +0400, Igor Homyakov wrote: > * Alexey Tourbin [030602 14:40]: > > On Mon, Jun 02, 2003 at 01:02:20PM +0400, Igor Homyakov wrote: > > > совершенно верно и еще один совет по стилю из > > > man 3 snprintf OpenBSD 3.3: > > > > > > Be sure to use the proper secure idiom: > > > > > > snprintf(buffer, sizeof(buffer), "%s", string); > > > Лучше asprintf. > > с snprintf есть проблемы с переносимостью у уж про asprintf > у говорить нечего. Существует переносимая реализация asprintf(3). -- ldv --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+3FdW9viEa8HiNCkRAiCtAJ9mkHGZjtVmhqHBoYWH85Df5UdRpgCcDQg5 BMaIgNBeE/YE/mczWvZIcPY= =OOKY -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--