aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetgraph/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libnetgraph/msg.c')
-rw-r--r--lib/libnetgraph/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c
index ece1787f2b7e..bae4743e5a50 100644
--- a/lib/libnetgraph/msg.c
+++ b/lib/libnetgraph/msg.c
@@ -115,7 +115,7 @@ NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...)
/* Get a bigger buffer to hold inner message header plus arg string */
if ((ascii = malloc(sizeof(struct ng_mesg)
- + strlen(buf) + 1)) == NULL) {
+ + strlen(args) + 1)) == NULL) {
free(buf);
return (-1);
}