IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2012, 9:28:57 AM (14 years ago)
Author:
bills
Message:

Expand the buffer for lines read from files sourced by the input command from 1024 to 4096 characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/input.c

    r33963 r34337  
    2222  NLINES = D_NLINES;
    2323  ALLOCATE (inlist.line, char *, NLINES);
    24   ALLOCATE (inlist.line[0], char, 1024);
     24  ALLOCATE (inlist.line[0], char, 4096);
    2525  for (i = 0; (scan_line (infile, inlist.line[i]) != EOF);) {
    2626    stripwhite (inlist.line[i]);
     
    3535    }
    3636    i++;
    37     ALLOCATE (inlist.line[i], char, 1024);
     37    ALLOCATE (inlist.line[i], char, 4096);
    3838  }
    3939  inlist.Nlines = i;
Note: See TracChangeset for help on using the changeset viewer.