diff options
Diffstat (limited to 'lib/src/base.c')
-rw-r--r-- | lib/src/base.c | 4 |
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; |