llvm-project
784b74c6 - [libc] Fix off by one error in strftime (#165711)

Commit
44 days ago
[libc] Fix off by one error in strftime (#165711) This patch fixes a bug in strftime's return value when the formatted output exactly fills the buffer, not including the null terminator. The previous check failed to account for the null terminator in this case, incorrectly returning the written count instead of 0.
Author
Parents
Loading