[Ttssh2-commit] [7397] Merge branch 'trunk' r7393 into cmake

scmno****@osdn***** scmno****@osdn*****
2019年 1月 17日 (木) 23:02:53 JST


Revision: 7397
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7397
Author:   zmatsuo
Date:     2019-01-17 23:02:52 +0900 (Thu, 17 Jan 2019)
Log Message:
-----------
Merge branch 'trunk' r7393 into cmake

Revision Links:
--------------
    http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7393

Modified Paths:
--------------
    branches/cmake/teraterm/ttpfile/ttfile.c

-------------- next part --------------
Modified: branches/cmake/teraterm/ttpfile/ttfile.c
===================================================================
--- branches/cmake/teraterm/ttpfile/ttfile.c	2019-01-17 14:02:42 UTC (rev 7396)
+++ branches/cmake/teraterm/ttpfile/ttfile.c	2019-01-17 14:02:52 UTC (rev 7397)
@@ -898,9 +898,11 @@
 {
 	int i;
 	char uimsg[MAX_UIMSG];
+	char c;
 
 	GetFileNamePos(fv->FullName,&(fv->DirLen),&i);
-	if (fv->FullName[fv->DirLen]=='\\') fv->DirLen++;
+	c = fv->FullName[fv->DirLen];
+	if (c=='\\'||c=='/') fv->DirLen++;
 	strncpy_s(fv->DlgCaption, sizeof(fv->DlgCaption),"Tera Term: ", _TRUNCATE);
 	switch (fv->OpId) {
 	case OpLog:


Ttssh2-commit メーリングリストの案内