author | Michael Krelin <hacker@klever.net> | 2009-07-17 20:32:07 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-07-17 20:32:07 (UTC) |
commit | c041e78dcd3459fed95cf6057305f5901203ff25 (patch) (unidiff) | |
tree | fdefaac0eb9f07f844151ba3a9f062862ca63c78 | |
parent | f886bfcc7e91a54421c36456d40a8e4eb97e4b49 (diff) | |
download | konforka-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>
-rw-r--r-- | lib/exception.cc | 1 |
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 @@ | |||
1 | #include <stdio.h> | ||
1 | #include <string.h> | 2 | #include <string.h> |
2 | #include <errno.h> | 3 | #include <errno.h> |
3 | #include "konforka/exception.h" | 4 | #include "konforka/exception.h" |
4 | 5 | ||
5 | namespace konforka { | 6 | namespace konforka { |
6 | 7 | ||
7 | /* | 8 | /* |
8 | * code_point | 9 | * code_point |
9 | */ | 10 | */ |
10 | 11 | ||
11 | code_point::code_point(const string& w) | 12 | code_point::code_point(const string& w) |
12 | : where(w), line(-1) { } | 13 | : where(w), line(-1) { } |
13 | code_point::code_point(const string& fi,const string& fu,int l) | 14 | code_point::code_point(const string& fi,const string& fu,int l) |
14 | : file(fi), function(fu), line(l) { | 15 | : file(fi), function(fu), line(l) { |
15 | make_where(); | 16 | make_where(); |
16 | } | 17 | } |
17 | 18 | ||
18 | const char *code_point::c_str() const throw() { | 19 | const char *code_point::c_str() const throw() { |
19 | return where.c_str(); | 20 | return where.c_str(); |
20 | } | 21 | } |
21 | 22 | ||
22 | void code_point::make_where() { | 23 | void code_point::make_where() { |
23 | static char tmp[8]; | 24 | static char tmp[8]; |
24 | snprintf(tmp,sizeof(tmp),"%d",line); | 25 | snprintf(tmp,sizeof(tmp),"%d",line); |