You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/06/03 19:25:58 UTC

[35/50] [abbrv] qpid-proton git commit: 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

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 <as...@apache.org>
Authored: Thu May 21 16:27:25 2015 -0400
Committer: Andrew Stitcher <as...@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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org