int FileRecvChunked(FDIOBuffer *FDB, const char **Err)
{
-
#ifdef LINUX_SENDFILE
ssize_t sent, pipesize;
FDB->ChunkSendRemain -= sent;
return sent;
#else
+
#endif
return 0;
}
b++; a++;
}
}
- if ((RemoveTrailingSlash) && (*(b - 1) != '/')){
- *b = '/';
- b++;
+ if ((RemoveTrailingSlash) &&
+ (b > Dir->buf) &&
+ (*(b - 1) == '/')){
+ b--;
}
*b = '\0';
Dir->BufUsed = b - Dir->buf;