Commit 57983cbe authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Replace unchecked use of {m|re}alloc with non-fail wrapper.

parent 49c0a5ca
......@@ -1110,7 +1110,7 @@ void zaxisDefVct(int zaxisID, int size, const double *vct)
if ( zaxisptr->vct == 0 )
{
zaxisptr->vctsize = size;
zaxisptr->vct = (double *) malloc(size*sizeof(double));
zaxisptr->vct = (double *)xmalloc(size*sizeof(double));
memcpy(zaxisptr->vct, vct, size*sizeof(double));
}
else
......
Supports Markdown
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