From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 2 Jun 2003 13:02:20 +0400 From: Igor Homyakov To: ALT Devel discussion list Subject: Re: [devel] NMU: fortune-mod, U: fortunes-ALT Message-ID: <20030602090220.GA10996@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> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030602081809.GC8759@basalt.office.altlinux.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: * Dmitry V. Levin [030602 12:44]: > > snprintf (temp_filename, 256, "%s/linpopup.XXXXXX", ptr); > Нет проверки, поместилось ли имя файла в буфер. совершенно верно и еще один совет по стилю из man 3 snprintf OpenBSD 3.3: Be sure to use the proper secure idiom: snprintf(buffer, sizeof(buffer), "%s", string); -- Igor Homyakov http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=190141