diff options
author | Robert Schuster <theBohemian@gmx.net> | 2006-11-09 11:26:57 +0000 |
---|---|---|
committer | Robert Schuster <theBohemian@gmx.net> | 2006-11-09 11:26:57 +0000 |
commit | fcd003dbf74f3510d39f661a90d6b6e9131dda5d (patch) | |
tree | 4b13807cf0c521ded2a821b9c1bffcbcfaef30c3 /native/jni | |
parent | 2373e148c098757a633030bb55c0890579afb124 (diff) | |
download | classpath-fcd003dbf74f3510d39f661a90d6b6e9131dda5d.tar.gz |
2006-11-09 Robert Schuster <robertschuster@fsfe.org>
* native/jni/java-nio/gnu_java_nio_VMChannel.c:
(getpeername): Added 16 byte offset to memcpy operation.
Diffstat (limited to 'native/jni')
-rw-r--r-- | native/jni/java-nio/gnu_java_nio_VMChannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/java-nio/gnu_java_nio_VMChannel.c b/native/jni/java-nio/gnu_java_nio_VMChannel.c index 4bb9c8724..c49a3184f 100644 --- a/native/jni/java-nio/gnu_java_nio_VMChannel.c +++ b/native/jni/java-nio/gnu_java_nio_VMChannel.c @@ -1331,7 +1331,7 @@ Java_gnu_java_nio_VMChannel_getpeername (JNIEnv *env, jclass clazz __attribute__ { addr6 = (struct sockaddr_in6 *) sockaddr; memcpy (nameptr, &(addr6->sin6_addr.s6_addr), 16); - memcpy (nameptr, &(addr6->sin6_port), 2); + memcpy (nameptr + 16, &(addr6->sin6_port), 2); return 16; } #endif /* HAVE_INET6 */ |