glts: do_it stack smashing fix