> c++ t5.cpp -o t5 -s > /tmp/cc0fgsQN.o(.text+0x1d): In function `main': > : warning: the `gets' function is dangerous and should not be used. Linux(colinux+debian)で、コンパイル中、こんなワーニングがでました。 このタイプのセキュリティホール?はどのように解決すればいいのでしょうか? 今のところ、単純に、 > pb = fgets( buf, sizeof(buf), stdin ); に書き換えて、ワーニング出力を出さないようにする方法をとっています。 解決方法、ワーニング関係の情報入手方法を教えてください。 man ld でしょうか?
Follow-Ups:
- Prev by Date: [fol] Re: C$B%3%s%Q%$%i!<$N4pK\3NG'(B
- Next by Date: [fol] Re: C$B%3%s%Q%$%i!<$N4pK\3NG'(B
- Previous by thread: [fol] Invest $5,000. Get Back $80,600.00 . Get your share of the pie
- Next by thread: [fol] Re: C$B%3%s%Q%$%i!<$N4pK\3NG'(B
- Indexes:[Main][Thread]