Commit Graph
1 Commits
Author SHA1 Message Date
Rohan Singh be7a76a18f fix: ensure null terminator is appended to string copy in timerGetSource
The timerGetSource function allocates a buffer and copies the source string using strncpy, which does not guarantee null termination when the source length equals the buffer size. This change explicitly sets the final character to '\0' to prevent potential buffer over-reads or undefined behavior when the returned string is used by callers.
2015-08-13 05:50:21 +00:00