Avoid format-overflow warning on setting headers
The new -Wformat-overflow warning in GCC7 fails to understand that the buffer is in fact large enough, likely because it counts on the integers possibly being negative. Move to using snprintf() instead since that accounts for buffer size, and is really what we should have done in the first place. Also touch up the consumer of the GP_CSVOPT buffer even though it's using a buffer oversized enough to probably not cause that same warning.
Showing
想要评论请 注册 或 登录