aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/fakemail.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index 30d39db533e..be9d6e09bae 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -175,10 +175,10 @@ error (s1, s2)
175/* Print error message and exit. */ 175/* Print error message and exit. */
176 176
177static void 177static void
178fatal (s1, s2) 178fatal (s1)
179 char *s1, *s2; 179 char *s1;
180{ 180{
181 error (s1, s2); 181 error ("%s", s1);
182 exit (EXIT_FAILURE); 182 exit (EXIT_FAILURE);
183} 183}
184 184
@@ -190,7 +190,7 @@ xmalloc (size)
190{ 190{
191 long *result = (long *) malloc (((unsigned) size)); 191 long *result = (long *) malloc (((unsigned) size));
192 if (result == ((long *) NULL)) 192 if (result == ((long *) NULL))
193 fatal ("virtual memory exhausted", 0); 193 fatal ("virtual memory exhausted");
194 return result; 194 return result;
195} 195}
196 196
@@ -377,7 +377,7 @@ make_file_preface ()
377 tm = localtime (&idiotic_interface); 377 tm = localtime (&idiotic_interface);
378 if (! (tm && TM_YEAR_IN_ASCTIME_RANGE (tm->tm_year) 378 if (! (tm && TM_YEAR_IN_ASCTIME_RANGE (tm->tm_year)
379 && (the_date = asctime (tm)))) 379 && (the_date = asctime (tm))))
380 fatal ("current time is out of range", 0); 380 fatal ("current time is out of range");
381 /* the_date has an unwanted newline at the end */ 381 /* the_date has an unwanted newline at the end */
382 date_length = strlen (the_date) - 1; 382 date_length = strlen (the_date) - 1;
383 the_date[date_length] = '\0'; 383 the_date[date_length] = '\0';