Update sini3d_b.c

infinite loop at RIM function