Repository: qpid-proton Updated Branches: refs/heads/master c1f9ed41a -> e349a0212
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/master Commit: e349a02120d306babb0219238f172c26cc8b49ea Parents: c1f9ed4 Author: Andrew Stitcher <astitc...@apache.org> Authored: Thu May 21 16:27:25 2015 -0400 Committer: Andrew Stitcher <astitc...@apache.org> 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: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org