Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions basic/strdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down