summaryrefslogtreecommitdiff
path: root/subversion/libsvn_subr/skel.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_subr/skel.c')
-rw-r--r--subversion/libsvn_subr/skel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subversion/libsvn_subr/skel.c b/subversion/libsvn_subr/skel.c
index ed12db094ad02..567440a0504b3 100644
--- a/subversion/libsvn_subr/skel.c
+++ b/subversion/libsvn_subr/skel.c
@@ -380,7 +380,7 @@ explicit_atom(const char *data,
data++;
/* Check the length. */
- if (data + size > end)
+ if (end - data < size)
return NULL;
/* Allocate the skel representing this string. */