#include <math/interaction.h>
#include <string.h>
#include <xalloc.h>
+#include <unistr.h>
struct interaction_variable
{
if (var != NULL)
{
- int val_width = 1;
uint8_t *val;
+ int val_width = 1;
result = xmalloc (sizeof (*result));
result->intr = var;
{
int w = var_get_width (var->members[i]);
value_resize (result, val_width, val_width + w);
- strncat (val, value_str (vals[i], w), w);
+ u8_strncat (val, value_str (vals[i], w), w);
val = value_str_rw (&result->val, val_width);
}
else if (var_is_numeric (var->members[i]))
{
size_t i;
size_t n_vars;
- const struct variable *intr;
const struct variable *member;
const union value **vals = NULL;
n_vars = interaction_get_n_vars (iv);
- intr = interaction_get_variable (iv);
vals = xnmalloc (n_vars, sizeof (*vals));
for (i = 0; i < n_vars; i++)