Ignore:
Timestamp:
Apr 20, 2010, 11:23:54 AM (15 years ago)
Author:
herwigb
Message:

2 Bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/src/splpd.c

    r26 r27  
    568568//      decryptPassword(password_enc,password_dec);
    569569
    570         j_parms = malloc((strlen(parameters) - strlen("%file%") + strlen(filename)) * sizeof(char));
    571 
    572         searchReplace("%file%", filename, parameters, j_parms);
    573 
    574         chdir(workingdir);     
     570        j_parms = malloc((strlen(parameters) - strlen("%file%") + strlen(filename)) * sizeof(char));
     571
     572        searchReplace("%file%", filename, parameters, j_parms);
     573
     574        if (strlen(workingdir) > 0)
     575        {
     576                chdir(workingdir);     
     577        };
    575578        rc = spawnlp(P_WAIT,binfile,binfile,j_parms,NULL);
    576579
    577580        while (rc != 0)
    578581        {
    579                 sprintf(errorstr,"Error during spooling %s to %s %s",queue_name,binfile,j_parms);
     582                sprintf(errorstr,"Error during spooling to %s %s",binfile,j_parms);
    580583                resp = WinMessageBox (HWND_DESKTOP,
    581584                                                        HWND_DESKTOP,
     
    590593        };
    591594
    592         free(j_parms);
     595        free(j_parms);
    593596        strcpy(filename,&szTemp[pos]);
    594597        DosDelete(filename);
Note: See TracChangeset for help on using the changeset viewer.