aboutsummaryrefslogtreecommitdiffstats
path: root/lib/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-10-07 11:25:49 +0000
committerGerrit Code Review <gerrit@fd.io>2022-10-07 11:25:49 +0000
commit03fb1444ad41d254469b4749382d1bf2b7cc48da (patch)
treebec48fc28af32a6f2c002060a45dd99cca471a9c /lib/src
parentcc00608f208258ecce9f7502a6ceca86f095076b (diff)
parent1e73c65c7b18ffcd5a8836fbc8384c21638faf48 (diff)
Merge "test: new packet format functional test with hiperf/libtransport"
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/base.c b/lib/src/base.c
index 8c689da50..1852666a6 100644
--- a/lib/src/base.c
+++ b/lib/src/base.c
@@ -34,9 +34,9 @@ hicn_packet_format_snprintf (char *s, size_t size, hicn_packet_format_t format)
int rc;
HICN_PACKET_FORMAT_ENUMERATE (format, i, protocol, {
- if (i > 1)
+ if (i > 0)
{
- rc = snprintf (cur, size - (cur - s), " %s ", "/");
+ rc = snprintf (cur, size - (cur - s), "%s", "/");
if (rc < 0 || rc >= size - (cur - s))
return rc;
cur += rc;