checked/changed all sprintf calls
This commit is contained in:
@@ -35,8 +35,8 @@ static char rcsid[] = "@(#$Id: docseqhist.cpp,v 1.4 2008-09-29 08:59:20 dockes E
|
||||
// The U distinguishes udi-based entries from older fn+ipath ones
|
||||
bool RclDHistoryEntry::encode(string& value)
|
||||
{
|
||||
char chartime[20];
|
||||
sprintf(chartime, "%ld", unixtime);
|
||||
char chartime[30];
|
||||
sprintf(chartime,"%ld", unixtime);
|
||||
string budi;
|
||||
base64_encode(udi, budi);
|
||||
value = string("U ") + string(chartime) + " " + budi;
|
||||
|
||||
@@ -75,6 +75,12 @@ public:
|
||||
{
|
||||
return append(data);
|
||||
}
|
||||
// Translation function. This is reimplemented in the qt reslist
|
||||
// object For this to work, the strings must be duplicated inside
|
||||
// reslist.cpp (see the QT_TR_NOOP in there). Very very unwieldy.
|
||||
// To repeat: any change to a string used with trans() inside
|
||||
// reslistpager.cpp must be reflected in the string table inside
|
||||
// reslist.cpp for translation to work.
|
||||
virtual string trans(const string& in);
|
||||
virtual string detailsLink();
|
||||
virtual const string &parFormat();
|
||||
|
||||
Reference in New Issue
Block a user