* device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause