aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/stream-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stream-client.c b/examples/stream-client.c
index a1f57b0..112d78b 100644
--- a/examples/stream-client.c
+++ b/examples/stream-client.c
@@ -80,7 +80,7 @@ static int kbd_cb(struct osmo_fd *fd, unsigned int what)
LOGP(DSTREAMTEST, LOGL_ERROR, "cannot allocate message\n");
return 0;
}
- ptr = msgb_put(msg, strlen(buf));
+ ptr = msgb_put(msg, ret);
memcpy(ptr, buf, ret);
osmo_stream_cli_send(conn, msg);