diff options
Diffstat (limited to 'mfd/prog.c')
-rw-r--r-- | mfd/prog.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1487,9 +1487,9 @@ instr_result(eval_environ_t env) | |||
1487 | char *code, *xcode; | 1487 | char *code, *xcode; |
1488 | char *message; | 1488 | char *message; |
1489 | 1489 | ||
1490 | get_string_arg(env, 0, &message); | 1490 | get_string_arg(env, 2, &message); |
1491 | get_literal(env, 1, (const char**)&code); | 1491 | get_string_arg(env, 1, &xcode); |
1492 | get_literal(env, 2, (const char**)&xcode); | 1492 | get_string_arg(env, 0, &code); |
1493 | 1493 | ||
1494 | if (PROG_TRACE_ENGINE) | 1494 | if (PROG_TRACE_ENGINE) |
1495 | prog_trace(env, "RESULT %d %s %s %s", | 1495 | prog_trace(env, "RESULT %d %s %s %s", |
@@ -1513,8 +1513,8 @@ instr_result(eval_environ_t env) | |||
1513 | 1513 | ||
1514 | env->status = status; | 1514 | env->status = status; |
1515 | env->setreply(env->data, code, xcode, message); | 1515 | env->setreply(env->data, code, xcode, message); |
1516 | advance_pc(env, 3); | 1516 | advance_pc(env, 1); |
1517 | adjust_stack(env, 1); | 1517 | adjust_stack(env, 3); |
1518 | } | 1518 | } |
1519 | 1519 | ||
1520 | void | 1520 | void |