svnno****@sourc*****
svnno****@sourc*****
2009年 5月 18日 (月) 00:35:09 JST
Revision: 3405 http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3405 Author: yutakapon Date: 2009-05-18 00:35:08 +0900 (Mon, 18 May 2009) Log Message: ----------- ã¯ãªãã«ãã«URLã«ããã¦ã以ä¸ã®ä¿®æ£ãé©ç¨ããã ãã»URLæåã¨ãã¦ï½ãèªèããããã«ããã ãã»URLæååã1024ãã¤ããè¶ ããã¨ããããã¡ã null-terminate ããã¦ããªãã£ããã°ã®ä¿®æ£ã cf. http://logmett.com/forum/viewtopic.php?f=8&t=1104 Modified Paths: -------------- trunk/teraterm/teraterm/buffer.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/buffer.c =================================================================== --- trunk/teraterm/teraterm/buffer.c 2009-05-15 16:38:55 UTC (rev 3404) +++ trunk/teraterm/teraterm/buffer.c 2009-05-17 15:35:08 UTC (rev 3405) @@ -1348,7 +1348,7 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* +40: "@ABCDEFGHIJKLMNO" */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1, /* +50: "PQRSTUVWXYZ[\]^_" */ 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* +60: "`abcdefghijklmno" */ - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, -1, 0, /* +70: "pqrstuvwxyz{|}~ " */ + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, 0, /* +70: "pqrstuvwxyz{|}~ " */ /* 0 : not url char * -1 : url char * other: url head char --> url_table array number + 1 @@ -2028,8 +2028,9 @@ } end--; - if (start + 1024 <= end) { - end = start + 1023; + if (start + (LONG)sizeof(url) <= end) { + end = start + sizeof(url) - 1; + end--; // '\0'̪Íø¢Ä¨B } uptr = url; for (i = 0; i < end - start + 1; i++) {