Commit 4d3f271d authored by Claes Sjofors's avatar Claes Sjofors

Wb bugfix in print wbl for attributes with several levels of class arrays

parent 828fbbeb
......@@ -230,7 +230,7 @@ wb_attribute::wb_attribute(const wb_attribute& pa, int idx, const char *aname) :
if ( pa.m_flags & PWR_MASK_ARRAY) {
if ( attrname[strlen(attrname)-1] == ']') {
// Replace the index
char *s = strchr( attrname, '[');
char *s = strrchr( attrname, '[');
if ( s)
sprintf( s, "[%d]", idx);
}
......
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