Module: xenomai-forge Branch: next Commit: b1f0d2942b1ed6d3e0471e6f8fd4c3ee9e3f90d8 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=b1f0d2942b1ed6d3e0471e6f8fd4c3ee9e3f90d8
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Jun 29 11:38:30 2014 +0200 utils/slackspot: fix dynamic allocation conversion specifier --- utils/slackspot/slackspot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/slackspot/slackspot.c b/utils/slackspot/slackspot.c index 6106dc1..f66a9a1 100644 --- a/utils/slackspot/slackspot.c +++ b/utils/slackspot/slackspot.c @@ -209,7 +209,7 @@ static int build_filter_list(const char *filters) filter = strdup(filters); while ((filter = strtok(filter, ",")) != NULL) { f = malloc(sizeof(*f)); - ret = sscanf(filter, "%a[a-z]=%a[^\n]", &name, &f->exp); + ret = sscanf(filter, "%m[a-z]=%m[^\n]", &name, &f->exp); if (ret != 2) return EINVAL; if (strcmp(name, "thread") == 0) _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git