diff --git a/private/string_map.h b/private/string_map.h index 2d10f4b..ac26f92 100644 --- a/private/string_map.h +++ b/private/string_map.h @@ -102,7 +102,7 @@ namespace cppcms { char *allocate_space(size_t size) { - if(size * 2 > page_size_) { + if(size > page_size_) { page *p=(page *)malloc(size + sizeof(page)); if(!p) throw std::bad_alloc();