]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sbuff: typo
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jul 2020 04:09:01 +0000 (00:09 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jul 2020 04:09:01 +0000 (00:09 -0400)
src/lib/util/sbuff.c

index 197e2d1acfa739bdf990bc883261915207d903fd..852cf6225c3cb7b78c82269d4fcd28d3ba7d6247 100644 (file)
@@ -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);