diff --git a/src/lib66/utils/set_livedir.c b/src/lib66/utils/set_livedir.c index a4a22200bc6e0b7da11e2be7aedd93e7424189c7..30042aac2f45098e51f92882c12f629c94f6c9f8 100644 --- a/src/lib66/utils/set_livedir.c +++ b/src/lib66/utils/set_livedir.c @@ -29,10 +29,8 @@ int set_livedir(stralloc *live) if (live->s[0] != '/') return -1 ; - if (live->s[live->len - 2] != '/') { - live->len-- ; + if (live->s[live->len - 1] != '/') if (!auto_stra(live,"/")) log_warnsys_return(LOG_EXIT_ZERO,"stralloc") ; - } } else if (!auto_stra(live,SS_LIVE)) log_warnsys_return(LOG_EXIT_ZERO,"stralloc") ;