Commit e79d1004 authored by Adam Wujek's avatar Adam Wujek

revision: avoid buffer over-read

Add as a last byte NULL char.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 9bdeab52
......@@ -27,8 +27,12 @@ struct spll_stats stats __attribute__((section(".stats"))) = {
.build_by = "",
#else
.build_date = __DATE__,
.commit_id[sizeof(stats.build_date) - 1] = 0,
.build_time = __TIME__,
.commit_id[sizeof(stats.build_time) - 1] = 0,
.build_by = __GIT_USR__,
.commit_id[sizeof(stats.build_by) - 1] = 0,
#endif
.commit_id = __GIT_VER__,
.commit_id[sizeof(stats.commit_id) - 1] = 0,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment