Changeset 1788


Ignore:
Timestamp:
09/12/11 10:03:14 (6 months ago)
Author:
Freddie Akeroyd
Message:

Use size_t rather than int to allow larger file sizes in write. Refs #315

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/nxio.c

    r1769 r1788  
    152152              char **bufptr,            /* IO - Current position in buffer */ 
    153153              char **buffer,            /* IO - Current buffer */ 
    154               int  *bufsize)            /* IO - Current buffer size */ 
     154              size_t  *bufsize)         /* IO - Current buffer size */ 
    155155{ 
    156156  char  *newbuffer;                     /* New buffer value */ 
     
    482482} 
    483483/*---------------------------------------------------------------------*/ 
    484 static void stringIntoBuffer(char **buffer, char **bufPtr, int *bufSize,  
     484static void stringIntoBuffer(char **buffer, char **bufPtr, size_t *bufSize,  
    485485                      char *string){ 
    486486  size_t i; 
     
    537537  char *buffer, *bufPtr; 
    538538  pNXDS dataset; 
    539   int bufsize, i, length, currentLen, table_style = 0;  
     539  int currentLen, table_style = 0;  
     540  size_t i, bufsize, length; 
    540541  int is_definition = 0; 
    541542  /* this is set by nxconvert when making a definiton */ 
Note: See TracChangeset for help on using the changeset viewer.