bugAVR C Runtime Library - Bugs: bug #14104, sscanf returns number of matches...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14104: sscanf returns number of matches instead of number of assignments

Submitter:  Darcy Watkins <dwatkins>
Submitted:  Fri 12 Aug 2005 02:23:03 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  None Fixed Release:  None

Wed 09 Nov 2005 10:01:59 PM UTC, comment #1: 

Fixed in both, HEAD of CVS and the 1.2 branch.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 12 Aug 2005 02:23:03 PM UTC, original submission:  

From my email to [avr-libc-dev] Aug 11/05...

Hi,

r = sscanf(response, "HTTP/1.%*d %03d", &ret);

returns 2 when parsing "HTTP/1.1 234" when it should return 1

The return value should be the number of fields assigned (and not count those with assignment suppressed).

This behaviour is observed in both the minimalist and floating scanf libraries.

Darcy Watkins <dwatkins>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-09 joerg_wunsch StatusNone Fixed
    Open/ClosedOpen Closed
2005-09-06 joerg_wunsch Assigned toNone joerg_wunsch

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code