[Ttssh2-commit] [6870] Release ビルドで以下の warning が出るので修正

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2017年 7月 22日 (土) 07:02:15 JST


Revision: 6870
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6870
Author:   maya
Date:     2017-07-22 07:02:14 +0900 (Sat, 22 Jul 2017)
Log Message:
-----------
Release ビルドで以下の warning が出るので修正

warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup.

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/fwd-socks.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/fwd-socks.c
===================================================================
--- trunk/ttssh2/ttxssh/fwd-socks.c	2017-07-21 22:01:57 UTC (rev 6869)
+++ trunk/ttssh2/ttxssh/fwd-socks.c	2017-07-21 22:02:14 UTC (rev 6870)
@@ -90,7 +90,7 @@
 
 	closure->pvar = pvar;
 	closure->channel_num = channel_num;
-	closure->peer_name = strdup(peer_name);
+	closure->peer_name = _strdup(peer_name);
 	closure->peer_port = port;
 
 	closure->status = SOCKS_STATE_INIT;



Ttssh2-commit メーリングリストの案内
アーカイブの一覧に戻る