Scanf with limited length to write