svnno****@sourc*****
svnno****@sourc*****
2009年 7月 8日 (水) 21:50:34 JST
Revision: 3585 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3585 Author: doda Date: 2009-07-08 21:50:33 +0900 (Wed, 08 Jul 2009) Log Message: ----------- strscanがマルチバイト文字で予期せぬ場所に引っかかる場合が有るのを修正。 strscan "一覧表D" "\D" Modified Paths: -------------- trunk/teraterm/ttpmacro/ttl.c -------------- next part -------------- Modified: trunk/teraterm/ttpmacro/ttl.c =================================================================== --- trunk/teraterm/ttpmacro/ttl.c 2009-07-07 06:18:52 UTC (rev 3584) +++ trunk/teraterm/ttpmacro/ttl.c 2009-07-08 12:50:33 UTC (rev 3585) @@ -8,6 +8,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <mbstring.h> #include <time.h> #include <errno.h> #include "ttmdlg.h" @@ -3174,7 +3175,7 @@ return Err; } - if ((p = strstr(Str1, Str2)) != NULL) { + if ((p = _mbsstr(Str1, Str2)) != NULL) { SetResult(p - Str1 + 1); } else {