Skip to content
Snippets Groups Projects
Commit 796b7f9a authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

fix the recognition of last slash

parent 65e933ce
No related branches found
No related tags found
No related merge requests found
......@@ -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") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment