PROTON-883: Fixed using a pointer value as a size - It's not clear to me how the warning message this caused went ignored - It's also not clear to me why this error passed the tests without crashing, probably the ruby tests need improving.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e349a021 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e349a021 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e349a021 Branch: refs/heads/cjansen-cpp-client Commit: e349a02120d306babb0219238f172c26cc8b49ea Parents: c1f9ed4 Author: Andrew Stitcher <[email protected]> Authored: Thu May 21 16:27:25 2015 -0400 Committer: Andrew Stitcher <[email protected]> Committed: Thu May 21 16:27:25 2015 -0400 ---------------------------------------------------------------------- proton-c/bindings/ruby/ruby.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e349a021/proton-c/bindings/ruby/ruby.i ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/ruby.i b/proton-c/bindings/ruby/ruby.i index 7380068..7205f57 100644 --- a/proton-c/bindings/ruby/ruby.i +++ b/proton-c/bindings/ruby/ruby.i @@ -276,7 +276,7 @@ ssize_t pn_transport_input(pn_transport_t *transport, char *STRING, size_t LENGT %rename(pn_transport_peek) wrap_pn_transport_peek; %inline %{ int wrap_pn_transport_peek(pn_transport_t *transport, char *OUTPUT, size_t *OUTPUT_SIZE) { - ssize_t sz = pn_transport_peek(transport, OUTPUT, OUTPUT_SIZE); + ssize_t sz = pn_transport_peek(transport, OUTPUT, *OUTPUT_SIZE); if(sz >= 0) { *OUTPUT_SIZE = sz; } else { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
