'libs/ardour' - Correct an invalid buffer address (io.cc)
authorJohn Emmas <johne53@tiscali.co.uk>
Fri, 9 Aug 2013 16:48:15 +0000 (17:48 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Fri, 9 Aug 2013 16:48:15 +0000 (17:48 +0100)
libs/ardour/io.cc

index c7bf163d2798a4f57eec4f685b1e637f6cdff139..a9d37d4315cc9c6ad8930b416c965c9d1edc2913 100644 (file)
@@ -1391,7 +1391,7 @@ IO::build_legal_port_name (DataType type)
        snprintf (&buf1[0], name_size+1, ("%.*s/%s"), limit, nom.c_str(), suffix.c_str());
 
        int port_number = find_port_hole (&buf1[0]);
-       snprintf (&buf2[0], name_size+1, "%s %d", buf1, port_number);
+       snprintf (&buf2[0], name_size+1, "%s %d", &buf1[0], port_number);
 
        return string (&buf2[0]);
 }