aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 2b4ea7e23a4..21333826b3c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -25,6 +25,7 @@ Boston, MA 02110-1301, USA. */
25#include <stdio.h> 25#include <stdio.h>
26#include <ctype.h> 26#include <ctype.h>
27#include <string.h> 27#include <string.h>
28#include <stdarg.h>
28 29
29#include "termchar.h" 30#include "termchar.h"
30#include "termopts.h" 31#include "termopts.h"
@@ -2689,12 +2690,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.",
2689 2690
2690/* VARARGS 1 */ 2691/* VARARGS 1 */
2691void 2692void
2692fatal (str, arg1, arg2) 2693fatal (const char *str, ...)
2693 char *str, *arg1, *arg2;
2694{ 2694{
2695 va_list ap;
2696 va_start (ap, str);
2695 fprintf (stderr, "emacs: "); 2697 fprintf (stderr, "emacs: ");
2696 fprintf (stderr, str, arg1, arg2); 2698 vfprintf (stderr, str, ap);
2697 fprintf (stderr, "\n"); 2699 va_end (ap);
2698 fflush (stderr); 2700 fflush (stderr);
2699 exit (1); 2701 exit (1);
2700} 2702}