summaryrefslogtreecommitdiffabout
path: root/src/prog.c
Side-by-side diff
Diffstat (limited to 'src/prog.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/prog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/prog.c b/src/prog.c
index 75b5228..e88c87c 100644
--- a/src/prog.c
+++ b/src/prog.c
@@ -494,7 +494,7 @@ static void
env_register_auto(eval_environ_t env, void *ptr)
{
char *addr = *(char**)ptr;
-
+
if (env->numautos == MAX_AUTO_PTR)
runtime_error(env, "INTERNAL ERROR at %s:%d, please report",
__FILE__, __LINE__);
@@ -660,10 +660,11 @@ runtime_warning(eval_environ_t env, const char *fmt, ...)
_("RUNTIME WARNING near %s:%u: "),
ENV_LOC_FILE(env), ENV_LOC_LINE(env));
va_start(ap, fmt);
- mu_diag_output(MU_DIAG_WARNING, fmt, ap);
+ mu_diag_cont_printf(fmt, ap);
va_end(ap);
+ mu_diag_cont_printf("\n");
}
-
+
void
runtime_error(eval_environ_t env, const char *fmt, ...)
{

Return to:

Send suggestions and report system problems to the System administrator.