While I hope that DS names can be trusted, I'm feeling more comfortable this
way nonetheless.
else if (((size_t) status) >= (buffer_size - offset)) \
return (-ENOMEM); \
else \
- offset += ((size_t) status); \
+ offset += ((size_t) status); \
} while (0)
BUFFER_ADD ("[");
if (i > 0)
BUFFER_ADD (",");
- BUFFER_ADD ("\"");
- BUFFER_ADD(DS_TYPE_TO_STRING(ds->ds[i].type));
- BUFFER_ADD ("\"");
+ BUFFER_ADD ("\"%s\"", DS_TYPE_TO_STRING (ds->ds[i].type));
} /* for ds->ds_num */
BUFFER_ADD ("]");
else if (((size_t) status) >= (buffer_size - offset)) \
return (-ENOMEM); \
else \
- offset += ((size_t) status); \
+ offset += ((size_t) status); \
} while (0)
BUFFER_ADD ("[");
if (i > 0)
BUFFER_ADD (",");
- BUFFER_ADD ("\"");
- BUFFER_ADD(ds->ds[i].name);
- BUFFER_ADD ("\"");
-
+ BUFFER_ADD ("\"%s\"", ds->ds[i].name);
} /* for ds->ds_num */
BUFFER_ADD ("]");