diff options
Diffstat (limited to 'src/prog.c')
-rw-r--r-- | src/prog.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -494,7 +494,7 @@ static void | |||
494 | env_register_auto(eval_environ_t env, void *ptr) | 494 | env_register_auto(eval_environ_t env, void *ptr) |
495 | { | 495 | { |
496 | char *addr = *(char**)ptr; | 496 | char *addr = *(char**)ptr; |
497 | 497 | ||
498 | if (env->numautos == MAX_AUTO_PTR) | 498 | if (env->numautos == MAX_AUTO_PTR) |
499 | runtime_error(env, "INTERNAL ERROR at %s:%d, please report", | 499 | runtime_error(env, "INTERNAL ERROR at %s:%d, please report", |
500 | __FILE__, __LINE__); | 500 | __FILE__, __LINE__); |
@@ -660,10 +660,11 @@ runtime_warning(eval_environ_t env, const char *fmt, ...) | |||
660 | _("RUNTIME WARNING near %s:%u: "), | 660 | _("RUNTIME WARNING near %s:%u: "), |
661 | ENV_LOC_FILE(env), ENV_LOC_LINE(env)); | 661 | ENV_LOC_FILE(env), ENV_LOC_LINE(env)); |
662 | va_start(ap, fmt); | 662 | va_start(ap, fmt); |
663 | mu_diag_output(MU_DIAG_WARNING, fmt, ap); | 663 | mu_diag_cont_printf(fmt, ap); |
664 | va_end(ap); | 664 | va_end(ap); |
665 | mu_diag_cont_printf("\n"); | ||
665 | } | 666 | } |
666 | 667 | ||
667 | void | 668 | void |
668 | runtime_error(eval_environ_t env, const char *fmt, ...) | 669 | runtime_error(eval_environ_t env, const char *fmt, ...) |
669 | { | 670 | { |