[Ttssh2-commit] [7350] txssh 修正comポートのドロップダウンでクラッシュ

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2018年 12月 23日 (日) 02:31:24 JST


Revision: 7350
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7350
Author:   zmatsuo
Date:     2018-12-23 02:31:24 +0900 (Sun, 23 Dec 2018)
Log Message:
-----------
txssh 修正comポートのドロップダウンでクラッシュ

Modified Paths:
--------------
    branches/cmake/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: branches/cmake/ttssh2/ttxssh/ttxssh.c
===================================================================
--- branches/cmake/ttssh2/ttxssh/ttxssh.c	2018-12-22 17:31:13 UTC (rev 7349)
+++ branches/cmake/ttssh2/ttxssh/ttxssh.c	2018-12-22 17:31:24 UTC (rev 7350)
@@ -1740,7 +1740,7 @@
 				SIZE s;
 				for (i=0; i<count; i++) {
 					len = SendMessage(hostcom, CB_GETLBTEXTLEN, i, 0);
-					lbl = (char *)calloc(len+1, sizeof(char));
+					lbl = (char *)calloc(len+1, sizeof(TCHAR));
 					SendMessage(hostcom, CB_GETLBTEXT, i, (LPARAM)lbl);
 					GetTextExtentPoint32A(TmpDC, lbl, len, &s);
 					if (s.cx > max_len)


Ttssh2-commit メーリングリストの案内
Back to archive index