2007-04-27 strncpy does NOT guarantee to NULL terminate itself. programming strlcpyとか使おう。標準じゃないから定義されていない場合の独自実装も用意しておくこと