fixed new warning with previous iOS patch

(cherry picked from commit 70676a01eb)
This commit is contained in:
Ray Bellis 2017-07-04 12:12:11 +01:00
parent bfb96a9bb8
commit 4e69e1d072

View file

@ -459,7 +459,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;