Replaced some large local variables by other means which save stack space

This commit is contained in:
Thomas Schmitt 2011-05-02 10:03:11 +00:00
parent 54878a538e
commit 4b86308829
2 changed files with 3 additions and 5 deletions

View File

@ -1060,15 +1060,13 @@ int Xorriso_spotlist_to_sectormap(struct XorrisO *xorriso,
int Xorriso_open_job_data_to(struct XorrisO *xorriso,
struct CheckmediajoB *job, int flag)
{
char sfe[5*SfileadrL];
if(job->data_to_path[0] == 0)
return(2);
job->data_to_fd= open(job->data_to_path, O_RDWR | O_CREAT,
S_IRUSR | S_IWUSR);
if(job->data_to_fd == -1) {
sprintf(xorriso->info_text, "Cannot open path %s",
Text_shellsafe(job->data_to_path, sfe, 0));
sprintf(xorriso->info_text, "Cannot open path ");
Text_shellsafe(job->data_to_path, xorriso->info_text, 1);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, errno, "FAILURE", 0);
return(0);
}

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.02.091632"
#define Xorriso_timestamP "2011.05.02.100332"