This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug admin/17813] New: Incorrect Expression


https://sourceware.org/bugzilla/show_bug.cgi?id=17813

            Bug ID: 17813
           Summary: Incorrect Expression
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: admin
          Assignee: unassigned at sourceware dot org
          Reporter: sourceware-bugs at internot dot info
                CC: carlos at redhat dot com, roland at gnu dot org

Hi,

In /time/strftime_l.c:

1280          if (modifier == L_('O'))
1281            goto bad_format;
1282          else
1283            DO_NUMBER (1, tp->tm_year + TM_YEAR_BASE);

but DO_NUMBER is a macro:

741#define DO_NUMBER(d, v) \
742          digits = d > width ? d : width;                                   
 \
743          number_value = v; goto do_number


which will not run correctly unless DO_NUMBER is in { }'s.


Thanks,

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]