Changeset 2194


Ignore:
Timestamp:
Dec 24, 2006, 3:18:21 AM (14 years ago)
Author:
orlov
Message:
  • Fixed #255-character bug.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/c++/lib/StdIO/prim_read.cc

    r2187 r2194  
    2222  {
    2323    memset(&st, '\0', sizeof(mbstate_t));
    24     buf[i] = getc(_fp);
    25     if (buf[i] == EOF) return WEOF;
     24    int c = getc(_fp);
     25    if (c == EOF) return WEOF;
     26    buf[i] = c;
    2627    size_t res = mbrtowc(&wc, buf, sizeof(buf), &st);
    2728    if (res == (size_t)(-2)) continue;
Note: See TracChangeset for help on using the changeset viewer.