Skip to content
Snippets Groups Projects
Commit 153e61cc authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Extend buffer to prevent string truncation.

parent 9eab641a
No related branches found
No related tags found
No related merge requests found
......@@ -1587,7 +1587,7 @@ cdf_def_zaxis_hybrid_cf(stream_t *streamptr, int type, int *ncvaridp, int zaxisI
}
size_t len = 0;
char txt[CDI_MAX_NAME];
char txt[CDI_MAX_NAME*2+30];
if ( p0status == 0 )
len = (size_t)(sprintf(txt, "%s%s %s%s", "a: a b: b p0: ", p0name, "ps: ", psname));
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment