Changeset 13655
- Timestamp:
- 02/01/08 14:51:55 (3 months ago)
- Files:
-
- trunk/gdal/frmts/raw/pnmdataset.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/raw/pnmdataset.cpp
r13254 r13655 156 156 const char *pszSrc = (const char *) poOpenInfo->pabyHeader; 157 157 char szToken[512]; 158 int iIn, iOut, iToken = 0, nWidth =-1, nHeight=-1, nMaxValue=-1; 158 int iIn, iToken = 0, nWidth =-1, nHeight=-1, nMaxValue=-1; 159 unsigned int iOut; 159 160 160 161 iIn = 2; … … 163 164 iOut = 0; 164 165 szToken[0] = '\0'; 165 while( i In < poOpenInfo->nHeaderBytes )166 while( iOut < sizeof(szToken) && iIn < poOpenInfo->nHeaderBytes ) 166 167 { 167 168 if( pszSrc[iIn] == '#' )
