fix insetinclude

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@921 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-07-25 16:15:35 +00:00
parent 74952b3ab2
commit fdc357ba2b

View File

@ -195,14 +195,17 @@ static string unique_id() {
#ifdef HAVE_SSTREAM
std::ostringstream ost;
ost << "file" << ++seed;
// Needed if we use lyxstring.
return ost.str().c_str();
#else
char ctmp[16];
ostrstream ost(ctmp,16);
ost << "file" << ++seed << '\0';
#endif
// Needed if we use lyxstring.
return ost.str().c_str();
return ost.str();
#endif
}