the actual fix for width of string ID representation 2.0beta4
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Oct 2006 19:59:07 +0000 (19:59 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Oct 2006 19:59:07 +0000 (19:59 +0000)
git-svn-id: svn://localhost/ardour2/trunk@941 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/id.cc

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