Commit 74fb8362 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Use fail-safe allocation wrappers.

parent 8657f5e5
......@@ -649,7 +649,7 @@ int cgribexScanTimestep1(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