summaryrefslogtreecommitdiff
path: root/src/kiterror.c
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2016-01-08 01:29:36 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2016-01-08 01:29:36 +0200
commitcce3ee047e712f48059ed28b284cf5c194c34de8 (patch)
treeb13dd1a2bb2eb1094d597d30c70002a166caf3ac /src/kiterror.c
parentd843d120ae3d87548e10f7ee0ded71a301d5d4b3 (diff)
Code dump. Playback & decoding works, but no sync yet.
Diffstat (limited to 'src/kiterror.c')
-rw-r--r--src/kiterror.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kiterror.c b/src/kiterror.c
index 948fda9..eed779b 100644
--- a/src/kiterror.c
+++ b/src/kiterror.c
@@ -1,7 +1,10 @@
#include "kitchensink/kitchensink.h"
+#include <stdlib.h>
#include <stdarg.h>
+#include <stdio.h>
#include <stdbool.h>
+#include <assert.h>
#define KIT_ERRBUFSIZE 1024
@@ -17,6 +20,7 @@ const char* Kit_GetError() {
}
void Kit_SetError(const char* fmt, ...) {
+ assert(fmt != NULL);
va_list args;
va_start(args, fmt);
vsnprintf(_error_message, KIT_ERRBUFSIZE, (char*)fmt, args);