projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44e872f
)
Fixed bug in write
author
stefan
<none@none>
Mon, 2 Jun 2003 20:33:28 +0000
(20:33 +0000)
committer
stefan
<none@none>
Mon, 2 Jun 2003 20:33:28 +0000
(20:33 +0000)
nat/RandomAccessFile.c
patch
|
blob
|
history
diff --git
a/nat/RandomAccessFile.c
b/nat/RandomAccessFile.c
index 01815ac3014a421996a80bc864f05235c22a7ecd..a87362dd0d4c8f3424782a146bfbbd349d3661d7 100644
(file)
--- a/
nat/RandomAccessFile.c
+++ b/
nat/RandomAccessFile.c
@@
-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);