summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/OmFlowCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/ingenuity/OmFlowCanvas.cpp')
-rw-r--r--src/progs/ingenuity/OmFlowCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/progs/ingenuity/OmFlowCanvas.cpp b/src/progs/ingenuity/OmFlowCanvas.cpp
index ac5f8beb..a6e3617e 100644
--- a/src/progs/ingenuity/OmFlowCanvas.cpp
+++ b/src/progs/ingenuity/OmFlowCanvas.cpp
@@ -179,13 +179,15 @@ OmFlowCanvas::generate_port_name(const string& base) {
char num_buf[5];
for (uint i=1; i < 9999; ++i) {
- snprintf(num_buf, 5, "%d", i);
+ snprintf(num_buf, 5, "%u", i);
name = base + "_";
name += num_buf;
if (!m_patch_controller->patch_model()->get_port(name))
break;
}
+ assert(Path::is_valid(string("/") + name));
+
return name;
}