diff options
Diffstat (limited to 'path_utils/path_utils.c')
-rw-r--r-- | path_utils/path_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/path_utils/path_utils.c b/path_utils/path_utils.c index 97c845c..360d499 100644 --- a/path_utils/path_utils.c +++ b/path_utils/path_utils.c @@ -210,7 +210,7 @@ int path_concat(char *path, size_t path_size, const char *head, const char *tail for (p = tail; *p && *p == '/'; p++); /* skip any leading slashes in tail */ if (dst > path) if (dst < dst_end) *dst++ = '/'; /* insert single slash between head & tail */ - for (src = p; *src && dst <= dst_end;) *dst++ = *src++; /* copy tail */ + for (src = p; *src && dst < dst_end;) *dst++ = *src++; /* copy tail */ if (*src) return ENOBUFS; /* failed to copy everything */ } *dst = 0; |