Fixed log manager sometimes not writing the last character in a log message.

This was caused by type conversions from int to size_t and the usage of the MAX macro.
This commit is contained in:
Markus Makela
2015-02-20 04:42:02 +02:00
parent 093489d0d7
commit 3924f70d6b
6 changed files with 17 additions and 15 deletions

View File

@ -157,7 +157,7 @@ static bool do_hashtest(
CHK_HASHTABLE(h);
hashtable_free(h);
return_succp:
free(val_arr);
return succp;
}

View File

@ -32,7 +32,7 @@
#include <string.h>
#include <server.h>
#include <log_manager.h>
/**
* test1 Allocate a server and do lots of other things
*

View File

@ -187,7 +187,7 @@ int main(int argc, char** argv){
}
instance.thrpool = t_thr_pool;
int thr_num = 1;
intptr_t thr_num = 1;
for(i = 0;i<instance.thrcount;i++){