13
0

the actual fix for width of string ID representation

git-svn-id: svn://localhost/ardour2/trunk@941 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2006-10-03 19:59:07 +00:00
parent aabf0be5a9
commit a1695a570f

View File

@ -43,12 +43,12 @@ void
ID::print (char* buf) const ID::print (char* buf) const
{ {
/* XXX sizeof buf is unknown. bad API design */ /* XXX sizeof buf is unknown. bad API design */
snprintf (buf, 16, "%" PRIu64, _id); snprintf (buf, 32, "%" PRIu64, _id);
} }
string ID::to_s() const string ID::to_s() const
{ {
char buf[16]; // see print() char buf[32]; // see print()
print(buf); print(buf);
return string(buf); return string(buf);
} }