@@ -170,6 +170,7 @@ int db_bind_mod(const str* mod, db_func_t* mydbf)
char * prefix = "db_";
memcpy(name, prefix, 3);
memcpy(name+3, mod->s, mod->len);
+ name[mod->len+3] = 0;
/* for safety we initialize mydbf with 0 (this will cause
* a segfault immediately if someone tries to call a function