revise comment

This commit is contained in:
John Cupitt 2021-05-08 20:15:10 +01:00
parent 6d9308d93c
commit 7391418d09

View File

@ -280,9 +280,10 @@ vips_buf_appendns( VipsBuf *buf, const char *str, int sz )
/* Can't use vips_strncpy() here, we don't want to drop the end of the
* string.
*
* gcc10 issues a false-positive warning about this.
* gcc10.3 (I think?) issues a false-positive warning about this.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
strncpy( buf->base + buf->i, str, cpy );
#pragma GCC diagnostic pop
buf->i += cpy;