Commit 47b4fd0
committed
profiler: rtlib: fix gcc warnings
- gcc warns about snprintf() writing more than
it has space for in optimized / non-debug builds
- quiet the warning by ensuring values are in range
by clamping the values using modulo 10000 for the
4 digit year and modulo 100 for the other 2 digit
date / time values1 parent a3df859 commit 47b4fd0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
0 commit comments