PROTON-1624: Handle messages larger than 128 bytes
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/884ec562 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/884ec562 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/884ec562 Branch: refs/heads/go1 Commit: 884ec562ba7224ed05ff7bafcf966965a39026ab Parents: e1425d8 Author: Chuck Rolke <cro...@redhat.com> Authored: Thu Oct 12 10:38:23 2017 -0400 Committer: Chuck Rolke <cro...@redhat.com> Committed: Thu Oct 12 10:40:17 2017 -0400 ---------------------------------------------------------------------- examples/c/send.c | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/884ec562/examples/c/send.c ---------------------------------------------------------------------- diff --git a/examples/c/send.c b/examples/c/send.c index 6e5966c..1af74f8 100644 --- a/examples/c/send.c +++ b/examples/c/send.c @@ -80,6 +80,7 @@ static pn_bytes_t encode_message(app_data_t* app) { app->message_buffer.size *= 2; app->message_buffer.start = (char*)realloc(app->message_buffer.start, app->message_buffer.size); mbuf.size = app->message_buffer.size; + mbuf.start = app->message_buffer.start; } if (status != 0) { fprintf(stderr, "error encoding message: %s\n", pn_error_text(pn_message_error(message))); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org