mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 12:21:59 +08:00
Forgot to account for null character
This commit is contained in:
parent
68ab876bec
commit
8adeb2b5d0
@ -12,6 +12,6 @@ $perllib = "-lperl$perlver"
|
||||
windres slic3r.rc -O coff -o slic3r.res
|
||||
g++ -c -I'C:\strawberry\perl\lib\CORE\' shell.cpp -o slic3r.o
|
||||
g++ -c -I'C:\strawberry\perl\lib\CORE\' -DFORCE_GUI shell.cpp -o slic3r-gui.o
|
||||
g++ -v -static-libgcc -static-libstdc++ -L'C:\strawberry\c\lib' -L'C:\strawberry\perl\bin' -L'C:\strawberry\perl\lib\CORE\' $perllib slic3r.o slic3r.res -o slic3r-console.exe | Write-Host
|
||||
g++ -v -static-libgcc -static-libstdc++ -L'C:\strawberry\c\lib' -L'C:\strawberry\perl\bin' -L'C:\strawberry\perl\lib\CORE\' $perllib slic3r-gui.o slic3r.res -o slic3r.exe | Write-Host
|
||||
g++ -static-libgcc -static-libstdc++ -L'C:\strawberry\c\lib' -L'C:\strawberry\perl\bin' -L'C:\strawberry\perl\lib\CORE\' $perllib slic3r.o slic3r.res -o slic3r-console.exe | Write-Host
|
||||
g++ -static-libgcc -static-libstdc++ -L'C:\strawberry\c\lib' -L'C:\strawberry\perl\bin' -L'C:\strawberry\perl\lib\CORE\' $perllib slic3r-gui.o slic3r.res -o slic3r.exe | Write-Host
|
||||
|
||||
|
@ -23,7 +23,7 @@ int main(int argc, char **argv, char **env)
|
||||
|
||||
char exe_path[MAX_PATH] = {0};
|
||||
char script_path[MAX_PATH];
|
||||
char gui_flag[6] = {" --gui"};
|
||||
char gui_flag[7] = {" --gui"};
|
||||
#ifdef FORCE_GUI
|
||||
char** command_line = (char**)malloc(sizeof(char*) * ((++ argc) + 1+6));
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user