Update snapshot.c

for luar