[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:08936] Re: [Wnn] libjd.a



中野です。

<s8TN5.kawafuji@xxxxxxxxxxxxx>の記事において
kawafuji@xxxxxxxxxxxxxさんは書きました。

>  しかし、先に進んだものの、まだまだ問題があります。makeで次のエラー
> が出ました。
> 
> unix.o: In function `vim_dirname':
> unix.o(.text+0x5a8): the `getwd' function is dangerous and should not be used.
> ld: warning: libc.so.5, needed by ./libtermcap.so, may conflict with libc.so.6
> /lib/libc.so.5: the `gets' function is dangerous and should not be used.
> /lib/libc.so.5: warning: `siggetmask' is obsolete; `sigprocmask' is best
> 
>  最初のgetwdは使うべきじゃないといってるだけで、とりあえず動作に
> は問題ないですよね?でも、ソースを修正するとしたらgetwdの代わりに
> 何を使えばいいのでしょう?

 gets -> fgets
 getwd -> getcwd

のようです。 例のバッファあふれの関係みたいですね。

# う、JM の getcwd.3 に誤訳が...

-- 
中野@成蹊大