Authors: Christian Thalinger
- $Id: exceptions.c 1491 2004-11-12 13:25:02Z twisti $
+ $Id: exceptions.c 1578 2004-11-24 13:31:00Z twisti $
*/
}
-void throw_cacao_exception_exit(char *exception, char *message, ...)
+void throw_cacao_exception_exit(const char *exception, const char *message, ...)
{
s4 i;
char *tmp;
va_list ap;
len = strlen(exception);
- tmp = MNEW(char, len+1);
+ tmp = MNEW(char, len + 1);
strncpy(tmp, exception, len);
- tmp[len]='\0';
+ tmp[len] = '\0';
/* convert to classname */
fprintf(stderr, ": ");
va_start(ap, message);
- fprintf(stderr, message, ap);
+ vfprintf(stderr, message, ap);
va_end(ap);
}