Skip to content

Commit

Permalink
tests/posix_semaphore: test4: BUG add '\0' after fmt_u64_dec
Browse files Browse the repository at this point in the history
fmt_u64_dec does not include the terminating null string character.
  • Loading branch information
cladmi committed Oct 24, 2017
1 parent fe9c604 commit ffcdb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/posix_semaphore/main.c
Expand Up @@ -261,7 +261,7 @@ void test4(void)
}
}
stop = xtimer_now_usec64() - start;
fmt_u64_dec(uint64_str, stop);
uint64_str[fmt_u64_dec(uint64_str, stop)] = '\0';
if (stop < (exp - 100)) {
printf("first: waited only %s usec => FAILED\n", uint64_str);
}
Expand Down

0 comments on commit ffcdb61

Please sign in to comment.