diff options
author | delphij <delphij@FreeBSD.org> | 2014-07-25 20:49:59 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-07-25 20:49:59 +0000 |
commit | 8f78a55b3b1de0991b218d435611213e924fa4cf (patch) | |
tree | 4c03d11f4bf9209762194c77d0cfbf9af442d644 /tools | |
parent | d195860b081b2de18bc49a8a58a9468202964f39 (diff) | |
download | FreeBSD-src-8f78a55b3b1de0991b218d435611213e924fa4cf.zip FreeBSD-src-8f78a55b3b1de0991b218d435611213e924fa4cf.tar.gz |
Use the right length.
Submitted by: Sascha Wildner
MFC after: 2 weeks
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test/netfibs/reflect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/netfibs/reflect.c b/tools/test/netfibs/reflect.c index 3790617..47c7846 100644 --- a/tools/test/netfibs/reflect.c +++ b/tools/test/netfibs/reflect.c @@ -94,7 +94,7 @@ reflect_conn(int s, char *buf, size_t buflen, ssize_t l, struct sockaddr *sa, fprintf(stderr, "<< %s: %s\n", testcase, buf); if (reflectfib != (u_int)-1) - l = snprintf(buf, sizeof(buf), "FIB %u\n", reflectfib); + l = snprintf(buf, buflen, "FIB %u\n", reflectfib); /* If debug is on, log. */ if (debug > 0) { |