summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-26 09:32:28 +0000
committerdeva <deva>2005-04-26 09:32:28 +0000
commitd2458728cd226a2651005acfd3241e1a5f77782c (patch)
treefc962942aae5e722535dc6384eb266ba6b0d1b8b /src/error.cc
parent805229c3b5a9b5078a273d175140b42445fd501a (diff)
Tested some audio output code... didn't work... tesing it again later.
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/error.cc b/src/error.cc
index 34c8e33..d1d351d 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -66,12 +66,11 @@ void Error::pushError(char *fmt, ...)
char buf[1024];
pthread_mutex_lock(&mutex);
+ // Beginning of safezone
va_list argp;
va_start(argp, fmt);
- fprintf(stderr, "New Error: [");
- vfprintf(stderr, fmt, argp);
- fprintf(stderr, "]\n"); fflush(stderr);
+ fprintf(stderr, "New Error: ["); vfprintf(stderr, fmt, argp); fprintf(stderr, "]\n"); fflush(stderr);
vsprintf(buf, fmt, argp);
va_end(argp);
@@ -80,6 +79,8 @@ void Error::pushError(char *fmt, ...)
err->errstr = string(buf);
err->prev = lastError;
lastError = err;
+
+ // End of safezone
pthread_mutex_unlock(&mutex);
}