1 --- p7zip_15.14.1/CPP/myWindows/mySplitCommandLine.cpp.~1~ 2015-10-10 15:37:36.000000000 +0300
2 +++ p7zip_15.14.1/CPP/myWindows/mySplitCommandLine.cpp 2016-06-08 13:24:30.762224258 +0300
5 { // define P7ZIP_HOME_DIR
6 static char p7zip_home_dir[MAX_PATH];
8 - my_windows_split_path(arguments[0],dir,name);
9 - snprintf(p7zip_home_dir,sizeof(p7zip_home_dir),"P7ZIP_HOME_DIR=%s/",(const char *)dir);
10 +#if defined(_LP64) || defined (__amd64)
11 + static char default_path[] = "/usr/lib/64/7z";
13 + static char default_path[] = "/usr/lib/7z";
16 + if ((env = getenv("P7ZIP_HOME_DIR")) == NULL)
18 + snprintf(p7zip_home_dir,sizeof(p7zip_home_dir),"P7ZIP_HOME_DIR=%s/",env);
19 p7zip_home_dir[sizeof(p7zip_home_dir)-1] = 0;
20 putenv(p7zip_home_dir);