- snprintf(downstream->path, sizeof(downstream->path), "%s.%d",
- upstream->path, portnr);
+ int l = snprintf(downstream->path, sizeof(downstream->path), "%s.%d",
+ upstream->path, portnr);
+ /* Max string is nn.nn.nn.nn.nn, which fits in 16 bytes */
+ assert(l < sizeof(downstream->path));