Mercurial > hg > FederatedLinda
changeset 108:065450f32960
add '\0' at last of reply string of serial id
author | kazz |
---|---|
date | Mon, 19 Jul 2010 18:45:47 +0900 |
parents | 3c532f771c56 |
children | 8cec713e5abf |
files | src/fdl/TupleSpace.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fdl/TupleSpace.java Sat May 29 00:43:26 2010 +0900 +++ b/src/fdl/TupleSpace.java Mon Jul 19 18:45:47 2010 +0900 @@ -39,6 +39,8 @@ ByteBuffer data = ByteBuffer.allocate(10); ByteBuffer r = ByteBuffer.allocate(10); int value = user; + + r.put((byte) '\0'); while(value>0) { r.put((byte) (value%10 + '0')); value /= 10;