From e4bba18a91266f9188e0d491f170a827798cc1aa Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org" Date: Thu, 3 Nov 2005 01:26:42 +0000 Subject: Add another missing bit concerned with the blank space in nfct_sprintf_expect_id --- src/libnetfilter_conntrack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libnetfilter_conntrack.c b/src/libnetfilter_conntrack.c index 84fcf22..5b125cc 100644 --- a/src/libnetfilter_conntrack.c +++ b/src/libnetfilter_conntrack.c @@ -665,7 +665,8 @@ int nfct_sprintf_expect_id(char *buf, struct nfct_expect *exp) { int size = 0; - size = nfct_sprintf_expect(buf, exp); + /* add a blank space, that's why the add 1 to the size */ + size = nfct_sprintf_expect(buf, exp) + 1; size += nfct_sprintf_id(buf+size, exp->id); /* remove last blank space */ -- cgit v1.2.3