diff --git a/basic/strdb.cc b/basic/strdb.cc index ed3db6a..59948e9 100644 --- a/basic/strdb.cc +++ b/basic/strdb.cc @@ -184,10 +184,10 @@ void read_text(const char *file, int_func *func, StrDB &db, bool read_cached, bo } if(write_cached) logs("Writing to " << int_file); - char s[16384]; + std::string s; char buf[16384]; int buf_i = 0; // Output buffer while(in >> s) { // Read a string - int a = db.lookup(s, incorp_new, -1); + int a = db.lookup(s.c_str(), incorp_new, -1); if(func) func(a); if(write_cached) {