revise comment
This commit is contained in:
parent
6d9308d93c
commit
7391418d09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user