tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r377969 - /tomcat/connectors/trunk/jni/native/src/network.c
Date Wed, 15 Feb 2006 08:59:26 GMT
Author: pero
Date: Wed Feb 15 00:59:24 2006
New Revision: 377969

URL: http://svn.apache.org/viewcvs?rev=377969&view=rev
Log:
fix typecast after a hint form Mladen. thanks.

Modified:
    tomcat/connectors/trunk/jni/native/src/network.c

Modified: tomcat/connectors/trunk/jni/native/src/network.c
URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/src/network.c?rev=377969&r1=377968&r2=377969&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/src/network.c (original)
+++ tomcat/connectors/trunk/jni/native/src/network.c Wed Feb 15 00:59:24 2006
@@ -718,7 +718,7 @@
         char sb[TCN_BUFFER_SZ];
 
         if ((ss = (*s->net->recv)(s->opaque, sb, &nbytes)) == APR_SUCCESS)
-            (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, (jbyte*)sb);
+            (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, (jbyte*)&sb[0]);
     }
     else {
         jbyte *bytes = (*e)->GetByteArrayElements(e, buf, NULL);
@@ -776,7 +776,7 @@
     if (toread <= TCN_BUFFER_SZ) {
         char sb[TCN_BUFFER_SZ];
         ss = (*s->net->recv)(s->opaque, sb, &nbytes);
-        (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, (jbyte*)sb);
+        (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, (jbyte*)&sb[0]);
     }
     else {
         jbyte *bytes = (*e)->GetByteArrayElements(e, buf, NULL);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message