fixed new warning with previous iOS patch

This commit is contained in:
Ray Bellis
2017-07-04 12:12:11 +01:00
parent 03a4e4381e
commit 70676a01eb

View File

@@ -446,7 +446,7 @@ hex_dump(isc_buffer_t *b) {
*/
static isc_result_t
append(const char *text, size_t len, char **p, char *end) {
if (len > end - *p)
if (*p + len > end)
return (ISC_R_NOSPACE);
memmove(*p, text, len);
*p += len;