summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2009-07-17 20:32:07 (UTC)
committer Michael Krelin <hacker@klever.net>2009-07-17 20:32:07 (UTC)
commitc041e78dcd3459fed95cf6057305f5901203ff25 (patch) (side-by-side diff)
treefdefaac0eb9f07f844151ba3a9f062862ca63c78
parentf886bfcc7e91a54421c36456d40a8e4eb97e4b49 (diff)
downloadkonforka-c041e78dcd3459fed95cf6057305f5901203ff25.zip
konforka-c041e78dcd3459fed95cf6057305f5901203ff25.tar.gz
konforka-c041e78dcd3459fed95cf6057305f5901203ff25.tar.bz2
added missing includenext
stdio.h for snprintf Spotted-by: Brian Lewis Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/exception.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exception.cc b/lib/exception.cc
index 65302bf..e03f818 100644
--- a/lib/exception.cc
+++ b/lib/exception.cc
@@ -1,24 +1,25 @@
+#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "konforka/exception.h"
namespace konforka {
/*
* code_point
*/
code_point::code_point(const string& w)
: where(w), line(-1) { }
code_point::code_point(const string& fi,const string& fu,int l)
: file(fi), function(fu), line(l) {
make_where();
}
const char *code_point::c_str() const throw() {
return where.c_str();
}
void code_point::make_where() {
static char tmp[8];
snprintf(tmp,sizeof(tmp),"%d",line);