Fix snprintf in java/code.c