Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When compiling with -Wformat-overflow=2 GCC reports: note: 'sprintf' output between 16 and 35 bytes into a destination of size 32
- Loading branch information
c5c63a1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rkta wouldn't it be better to just go all the way and switch over to
snprintf
as well? If truncation is a problem thensnprintf
's return value can be used to detect it :)c5c63a1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.