@foxykodai getsさんは何文字控えているか判らない入力から大きさが有限のバッファに文字列を読み込むため、バッファオーバーランを防ぐことが出来ません。fgetsには「最大読み込みサイズの指定」があるので安全に読み込むことができます。
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
@foxykodai getsさんは何文字控えているか判らない入力から大きさが有限のバッファに文字列を読み込むため、バッファオーバーランを防ぐことが出来ません。fgetsには「最大読み込みサイズの指定」があるので安全に読み込むことができます。