[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: a2ps/src main.c,1.1.1.1,1.1.1.1.2.1
From: |
Franck Lombardi <address@hidden> |
Subject: |
CVS: a2ps/src main.c,1.1.1.1,1.1.1.1.2.1 |
Date: |
Sun, 06 Oct 2002 09:51:17 -0400 |
Update of /cvsroot/a2ps/a2ps/src
In directory subversions:/tmp/cvs-serv30968/src
Modified Files:
Tag: a2ps-4-1x
main.c
Log Message:
* src/main.c: Fixe SEGV when use one delegated job and one
or more failled jobs.
Index: main.c
===================================================================
RCS file: /cvsroot/a2ps/a2ps/src/main.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -r1.1.1.1 -r1.1.1.1.2.1
*** main.c 4 Mar 2002 18:46:28 -0000 1.1.1.1
--- main.c 6 Oct 2002 13:51:15 -0000 1.1.1.1.2.1
***************
*** 1177,1184 ****
* To this end, we need to put more information in file_job
* on how its processing went. */
a2ps_open_output_stream (job);
! pslex_dump (job->output_stream->fp,
! CURRENT_FILE (job)->delegation_tmpname);
! unlink (CURRENT_FILE (job)->delegation_tmpname);
a2ps_close_output_stream (job);
msg_job_pages_printed (job);
--- 1177,1197 ----
* To this end, we need to put more information in file_job
* on how its processing went. */
+
+ struct file_job * file_job;
+ size_t len;
+
+ /* 'delegation_tmpname' is necessary not null else it is a
+ failed job and we ignore it */
+ file_job = CURRENT_FILE (job);
+ len = job->jobs->len;
+ while (!file_job->delegation_tmpname)
+ {
+ len--;
+ file_job = job->jobs->content[len - 1];
+ }
+
a2ps_open_output_stream (job);
! pslex_dump (job->output_stream->fp, file_job->delegation_tmpname);
! unlink (file_job->delegation_tmpname);
a2ps_close_output_stream (job);
msg_job_pages_printed (job);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- CVS: a2ps/src main.c,1.1.1.1,1.1.1.1.2.1,
Franck Lombardi <address@hidden> <=