'libs/ardour' - Correct an invalid buffer address (io.cc)
This commit is contained in:
parent
4a29f1957e
commit
dc62ef6123
@ -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());
|
snprintf (&buf1[0], name_size+1, ("%.*s/%s"), limit, nom.c_str(), suffix.c_str());
|
||||||
|
|
||||||
int port_number = find_port_hole (&buf1[0]);
|
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]);
|
return string (&buf2[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user