From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 2 Jun 2003 14:49:21 +0400 From: Igor Homyakov To: ALT Devel discussion list Subject: Re: [devel] Re: printf(3) Message-ID: <20030602104921.GA13408@kadath.ramax.spb.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030602094012.GD24023@solemn.turbinal.org> User-Agent: Mutt/1.4.1i 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: * 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 у говорить нечего. -- Igor Homyakov http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=190141