comparison src/error.cc @ 438:c9f49cb62fb5

[project @ 1994-05-26 00:49:00 by jwe]
author jwe
date Thu, 26 May 1994 00:49:00 +0000
parents 6c445aacf230
children be9fcedb1715
comparison
equal deleted inserted replaced
437:6c445aacf230 438:c9f49cb62fb5
87 87
88 va_list args; 88 va_list args;
89 va_start (args, fmt); 89 va_start (args, fmt);
90 90
91 int len; 91 int len;
92 if (fmt && fmt[(len = strlen (fmt) - 1)] == '\n') 92 if (fmt && fmt[(len = strlen (fmt)) - 1] == '\n')
93 { 93 {
94 error_state = -2; 94 error_state = -2;
95 char *tmp_fmt = strsave (fmt); 95 char *tmp_fmt = strsave (fmt);
96 tmp_fmt[len - 1] = '\0'; 96 tmp_fmt[len - 1] = '\0';
97 verror ("error", tmp_fmt, args); 97 verror ("error", tmp_fmt, args);