summaryrefslogtreecommitdiff
path: root/navit/profile.c
diff options
context:
space:
mode:
authorkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-16 08:21:23 +0000
committerkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-16 08:21:23 +0000
commit97086b3c8d9f5aee87e1e9e236e834f121d866c6 (patch)
tree405bb6821e7026906fe83408fe9f1dff3eba8971 /navit/profile.c
parent93280efbe81b3c42cbfd40020ad53bee0c6cd818 (diff)
downloadnavit-97086b3c8d9f5aee87e1e9e236e834f121d866c6.tar.gz
Fix:Core:Fix coverity bug #18, Overrun of static array 'last'
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2318 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/profile.c')
-rw-r--r--navit/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/profile.c b/navit/profile.c
index addea61b3..7c733f14e 100644
--- a/navit/profile.c
+++ b/navit/profile.c
@@ -37,8 +37,8 @@ profile_timer(int level, const char *module, const char *function, const char *f
va_start(ap, fmt);
if (level < 0)
level=0;
- if (level > 10)
- level=10;
+ if (level > 9)
+ level=9;
if (fmt) {
gettimeofday(&curr, NULL);
msec=(curr.tv_usec-last[level].tv_usec)/1000+