mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Relax overly strict comparison
This commit is contained in:
parent
4259a16931
commit
7680144e15
1 changed files with 1 additions and 1 deletions
|
|
@ -1097,7 +1097,7 @@ void pathslash(char* dst, size_t size)
|
|||
size_t len = strlen(dst);
|
||||
|
||||
if (len > 0 && dst[len - 1] != '/') {
|
||||
if (len + 2 >= size) {
|
||||
if (len + 2 > size) {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(EINTERNAL, "Path too long '%s/'\n", dst);
|
||||
os_abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue