1581 {
1583 if (psSHP->pabyRec == NULL)
1584 {
1585 char szError[200];
1586
1587
1588 psSHP->pabyRec =
malloc(psSHP->nBufSize);
1589
1590 sprintf( szError,
1591 "Not enough memory to allocate requested memory (nBufSize=%d). "
1592 "Probably broken SHP file", psSHP->nBufSize );
1593 psSHP->sHooks.Error( szError );
1594 return NULL;
1595 }
1596
1597
1599 }
static void * SfRealloc(void *pMem, int nNewSize)