[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: a2ps/src main.c,1.2,1.3
From: |
Franck Lombardi <address@hidden> |
Subject: |
CVS: a2ps/src main.c,1.2,1.3 |
Date: |
Sun, 06 Oct 2002 09:52:15 -0400 |
Update of /cvsroot/a2ps/a2ps/src
In directory subversions:/tmp/cvs-serv31173/src
Modified Files:
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.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** main.c 22 Mar 2002 14:53:14 -0000 1.2
--- main.c 6 Oct 2002 13:52:13 -0000 1.3
***************
*** 1210,1217 ****
* To this end, we need to put more information in fjob
* 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);
--- 1210,1230 ----
* To this end, we need to put more information in fjob
* on how its processing went. */
+
+ struct fjob * fjob;
+ size_t len;
+
+ /* 'delegation_tmpname' is necessary not null else it is a
+ failed job and we ignore it */
+ fjob = CURRENT_FILE (job);
+ len = job->jobs->len;
+ while (!fjob->delegation_tmpname)
+ {
+ len--;
+ fjob = job->jobs->content[len - 1];
+ }
+
a2ps_open_output_stream (job);
! pslex_dump (job->output_stream->fp, fjob->delegation_tmpname);
! unlink (fjob->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.2,1.3,
Franck Lombardi <address@hidden> <=