Commit c709512f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix missing terminator in variable attribute.

parent 1f724155
......@@ -596,6 +596,7 @@ vlistAttUnpack(int vlistID, int varID,
tempbuf, vlist_att_nints, MPI_INT, comm));
attName = xmalloc(tempbuf[0] + 1);
xmpi(MPI_Unpack(buf, size, position, attName, tempbuf[0], MPI_CHAR, comm));
attName[tempbuf[0]] = '\0';
switch (tempbuf[2])
{
case DATATYPE_FLT:
......
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