1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix format security errors

This commit is contained in:
Georg Reinke 2017-07-17 15:07:20 +02:00
parent 2e57791b73
commit 98fd3f4789
2 changed files with 7 additions and 7 deletions

View file

@ -102,9 +102,9 @@ void table_header(struct table *t)
free(col);
}
stats(line0);
stats(line1);
stats(line2);
stats("%s", line0);
stats("%s", line1);
stats("%s", line2);
free(line0);
free(line1);
@ -142,7 +142,7 @@ void table_row(struct table *t, ...)
va_end(args);
stats(line);
stats("%s", line);
free(line);
}
@ -165,6 +165,6 @@ void table_footer(struct table *t)
strcatf(&line, "%s", BOX_ULR);
}
stats(line);
stats("%s", line);
free(line);
}
}

View file

@ -241,7 +241,7 @@ static int ngsi_parse_mapping(struct list *mapping, config_setting_t *cfg)
.name = "index",
.type = "integer"
};
asprintf(&i.value, "%u", j);
assert(asprintf(&i.value, "%u", j));
list_push(&a->metadata, memdup(&s, sizeof(s)));
list_push(&a->metadata, memdup(&i, sizeof(i)));