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

sizeof (char) == 1, always.

parent d2291171
No related branches found
No related tags found
No related merge requests found
......@@ -381,7 +381,7 @@ The function @func{vlistDefAttTxt} defines a text attribute.
*/
int vlistDefAttTxt(int vlistID, int varID, const char *name, int len, const char *tp)
{
return vlist_def_att(DATATYPE_TXT, DATATYPE_TXT, vlistID, varID, name, (size_t)len, (size_t)len * sizeof (char), tp);
return vlist_def_att(DATATYPE_TXT, DATATYPE_TXT, vlistID, varID, name, (size_t)len, (size_t)len, tp);
}
/*
......
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