OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/vencode.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/vencode.c 1.7 -> 1.8

--- vencode.c    2001/07/16 18:31:36     1.7
+++ vencode.c    2001/07/18 17:38:37     1.8
@@ -34,6 +34,7 @@
 
 int xds_vencode(xds_t* xds, const char* fmt_arg, va_list args)
     {
+    va_list args_backup;
     char* name;
     char* p;
     char* fmt;
@@ -111,6 +112,7 @@
                 do
                     {
                     printf("Executing engine '%s' ...\n", name);
+                    args_backup = args;
                     rc = (*xds->engines[pos].engine)(xds,
                                                      xds->engines[pos].context,
                                                      xds->buffer + xds->buffer_len,
@@ -123,7 +125,10 @@
                         int rc2;
 
                         if (rc > xds->buffer_capacity - xds->buffer_len)
+                            {
                             restart_engine = (1==1);
+                            args = args_backup;
+                            }
                         else
                             restart_engine = (1!=1);
 

CVSTrac 2.0.1