Fixed bug in write
authorstefan <none@none>
Mon, 2 Jun 2003 20:33:28 +0000 (20:33 +0000)
committerstefan <none@none>
Mon, 2 Jun 2003 20:33:28 +0000 (20:33 +0000)
nat/RandomAccessFile.c

index 01815ac3014a421996a80bc864f05235c22a7ecd..a87362dd0d4c8f3424782a146bfbbd349d3661d7 100644 (file)
@@ -139,7 +139,7 @@ JNIEXPORT void JNICALL Java_java_io_RandomAccessFile_write ( JNIEnv *env ,  stru
 {
        u1 buffer[1];
        int r;
-       buffer[1] = byte;
+       buffer[0] = byte;
        r = write (this->fd->fd, buffer, 1);
        if (r<0) {
                exceptionptr = native_new_and_init (class_java_io_IOException);