Fix GCC build

This commit is contained in:
Stas Degteff
2005-11-01 20:11:49 +00:00
parent 9928f3ee1f
commit 4ab601e382
2 changed files with 8 additions and 1 deletions

View File

@@ -119,7 +119,14 @@ int Area::LoadMsg(GMsg* msg, uint32_t msgno, int margin, int mode) {
Latin2Local(msg->re);
for (Line *ln = msg->lin; ln; ln = ln->next)
#ifdef _MSC_VER
Latin2Local(ln->txt.begin());
#else
{ char*str=strdup(ln->txt.data());
Latin2Local(str);
ln->txt.assign(str);
}
#endif
}
return true;