From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] conf.c: parsing floating point numbers Date: Wed, 03 Jul 2002 11:23:52 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3D2169B3.FA0D9F45@ladisch.de> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id LAA08991 for ; Wed, 3 Jul 2002 11:23:58 +0200 In-Reply-To: <3D2169B3.FA0D9F45@ladisch.de> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Clemens Ladisch Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 02 Jul 2002 10:52:03 +0200, Clemens Ladisch wrote: > > When parse_value finds something looking like a number, it first calls > safe_strtoll to test whether the value's type is integer. > Unfortunately, safe_strtoll simply grabs anything which may be an > integer, and doesn't check for any following characters (e.g. the > decimal point of a floating point number). > > This means that all floating point numbers are parsed as integers. > > The patch adds a check for the end of the string, similar to > safe_strtol and safe_strtod. thanks, applied to cvs. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek No, I will not fix your computer. http://thinkgeek.com/sf