progenvhotfix3 - stupid me.. reapplied fix wrong
authornveid <nveid@comcast.net>
Thu, 26 Oct 2006 10:07:57 +0000 (10:07 +0000)
committerAri Johnson <ari@nveid.com>
Tue, 12 Sep 2006 12:49:49 +0000 (12:49 +0000)
(cherry picked from commit 5b1b96d239e2b6a7c13cac69ed052df5b1222cc7)

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;