Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2007, 7:05:51 PM (16 years ago)
Author:
scheusso
Message:

changes in gamestatehandling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/GameStateClient.cc

    r620 r624  
    145145  int normsize = a.normsize;
    146146  int compsize = a.compsize;
    147   unsigned char* dest = (unsigned char*)malloc( normsize );
     147  int bufsize;
     148  if(normsize < compsize)
     149    bufsize = compsize;
     150  else
     151    bufsize = normsize;
     152  unsigned char* dest = (unsigned char*)malloc( bufsize );
    148153  int retval;
    149154  uLongf length=normsize;
Note: See TracChangeset for help on using the changeset viewer.