]> git.marmaro.de Git - mmh/blobdiff - sbr/error.c
Fix out-of-bounds error when incorporating email from stdin
[mmh] / sbr / error.c
index 28f3255aa0a98de308b870d23469feaf7b0959b9..1841ce4047379dc46db6cdb958f144ee64e6a11a 100644 (file)
@@ -29,14 +29,14 @@ advise(char *what, char *fmt, ...)
 ** print out error message and exit
 */
 void
-adios(char *what, char *fmt, ...)
+adios(int status, char *what, char *fmt, ...)
 {
        va_list ap;
 
        va_start(ap, fmt);
        advertise(what, NULL, fmt, ap);
        va_end(ap);
-       exit(1);
+       exit(status);
 }