Minor FilePlugin cleanup
Some checks failed
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled

This commit is contained in:
Vladimir Dubrovin 2026-08-08 23:06:36 +03:00
parent f480c9dfe8
commit c31fe8367f

View File

@ -114,12 +114,12 @@ static void genpaths(struct fp_stream *fps){
if(fps->what & (FP_CLIDATA|FP_CLIHEADER)){ if(fps->what & (FP_CLIDATA|FP_CLIHEADER)){
if(fps->fpd.path_cli) free(fps->fpd.path_cli); if(fps->fpd.path_cli) free(fps->fpd.path_cli);
fps->fpd.path_cli = malloc(len); fps->fpd.path_cli = malloc(len);
if(fps->fpd.path_cli) sprintf(fps->fpd.path_cli, path, counter++); if(fps->fpd.path_cli) sprintf(fps->fpd.path_cli, "%s%07d.tmp", path, counter++);
} }
if(fps->what & (FP_SRVDATA|FP_SRVHEADER)){ if(fps->what & (FP_SRVDATA|FP_SRVHEADER)){
if(fps->fpd.path_srv) free(fps->fpd.path_srv); if(fps->fpd.path_srv) free(fps->fpd.path_srv);
fps->fpd.path_srv = malloc(len); fps->fpd.path_srv = malloc(len);
if(fps->fpd.path_srv) sprintf(fps->fpd.path_srv, path, counter++); if(fps->fpd.path_srv) sprintf(fps->fpd.path_srv, "%s%07d.tmp", path, counter++);
} }
} }
@ -882,10 +882,10 @@ static int h_cachedir(int argc, unsigned char **argv){
} }
#ifdef _WIN32 #ifdef _WIN32
if(dirp[len-1] == '\\') dirp[len-1] = 0; if(dirp[len-1] == '\\') dirp[len-1] = 0;
sprintf(path, "%.256s\\%%07d.tmp", dirp); sprintf(path, "%.256s\\", dirp);
#else #else
if(dirp[len-1] == '/') dirp[len-1] = 0; if(dirp[len-1] == '/') dirp[len-1] = 0;
sprintf(path, "%.256s/%%07d.tmp", dirp); sprintf(path, "%.256s/", dirp);
#endif #endif
return 0; return 0;
} }