Commit 75d4f016 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Use fail-safe allocation wrapper.

parent b5d252af
......@@ -883,7 +883,7 @@ int cgribexScanTimestep2(stream_t * streamptr)
if ( (size_t)recsize > buffersize )
{
buffersize = (size_t)recsize;
gribbuffer = (unsigned char *) realloc(gribbuffer, buffersize);
gribbuffer = (unsigned char *)xrealloc(gribbuffer, buffersize);
}
readsize = (size_t)recsize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment