progenvhotfix3 - stupid me.. reapplied fix wrong
authornveid <nveid@comcast.net>
Thu, 26 Oct 2006 10:07:57 +0000 (10:07 +0000)
committernveid <nveid@comcast.net>
Thu, 26 Oct 2006 10:07:57 +0000 (10:07 +0000)
src/prog.c

index 7ad462e960e5c121cbdb50ce288be79732d43b85..a7b443a7ade79a474cd492743f80ecf67cfeb72d 100644 (file)
@@ -483,9 +483,10 @@ prog_handler(DESC * d, char *input)
     rcnt = elist2arr(p_buf, NUMQ, safe_atr_value(a), '|');
 
     for (i = 0; i < NUMQ && i < rcnt; i++)
-      if (p_buf[i] && strlen(p_buf[i]) > 0)
-        strcpy(global_eval_context.rnxt[i], p_buf[i]);
-    
+      if (p_buf[i] && strlen(p_buf[i]) > 0) {
+        strcpy(global_eval_context.renv[i], p_buf[i]);
+       global_eval_context.rnxt[i] = global_eval_context.renv[i];
+      }
   }
   strcpy(buf, atr_value(d->pinfo.atr));
   global_eval_context.wnxt[0] = input;