From: Arran Cudbard-Bell Date: Tue, 28 Jul 2020 04:09:01 +0000 (-0400) Subject: sbuff: typo X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7a409eabe4a3abbd7979a7d117142782a239f7;p=thirdparty%2Ffreeradius-server.git sbuff: typo --- diff --git a/src/lib/util/sbuff.c b/src/lib/util/sbuff.c index 197e2d1acfa..852cf6225c3 100644 --- a/src/lib/util/sbuff.c +++ b/src/lib/util/sbuff.c @@ -100,7 +100,7 @@ static inline CC_HINT(always_inline) ssize_t safecpy(char *o_start, char *o_end, diff = (o_end - o_start) - (i_len); if (diff < 0) return diff; - if ((o_start < i_end) || (i_start > o_end)) { /* no-overlap */ + if ((o_end < i_start) || (i_start > o_end)) { /* no-overlap */ memcpy(o_start, i_start, i_len); } else { /* overlap */ memmove(o_start, i_start, i_len);